FROM : jonathan@mugginsoft.com
DATE : Fri Feb 08 23:35:03 2008
Thanks for the reply Bill.
I presume you are referring to the OSAScript class.
Do you know if it is thread safe, unlike NSAppleScript?
This is where the lack of documentation really kicks in.
Bucketloads of time can be wasted pursuing the unachievable.
My app needs to run concurrent scripts.
At present I am firing them off into separate tasks wrapped around
NSAppleScript.
If I could run each script via OSAScript in a separate thread it would
be a big fast plus.
I know that Nathan Day's NDAppleScriptObject claims to offer thread
safe script execution but I have not investigated it yet.
Regards
Jonathan
> I use another class in OSAKit, instead of NSAppleScript, to run
> scripts in
> my applications, because OSAKit (which has an API that overlaps
> NSAppleScript) was fixed quite some time ago to properly save
> persistent
> properties in scripts. NSAppleScript has never done that properly.
> An Apple
> engineer advised me over a year ago that OSAKit is perfectly usable. I
> understand that at least some parts of it are used by Automator, and
> maybe
> even by Script Editor.
>
> I've been after Apple to document this for a year or two, without
> visible
> results.
>
> --
>
> Bill Cheeseman - <email_removed>
> Quechee Software, Quechee, Vermont, USA
> www.quecheesoftware.com
>
> PreFab Software - www.prefabsoftware.com
DATE : Fri Feb 08 23:35:03 2008
Thanks for the reply Bill.
I presume you are referring to the OSAScript class.
Do you know if it is thread safe, unlike NSAppleScript?
This is where the lack of documentation really kicks in.
Bucketloads of time can be wasted pursuing the unachievable.
My app needs to run concurrent scripts.
At present I am firing them off into separate tasks wrapped around
NSAppleScript.
If I could run each script via OSAScript in a separate thread it would
be a big fast plus.
I know that Nathan Day's NDAppleScriptObject claims to offer thread
safe script execution but I have not investigated it yet.
Regards
Jonathan
> I use another class in OSAKit, instead of NSAppleScript, to run
> scripts in
> my applications, because OSAKit (which has an API that overlaps
> NSAppleScript) was fixed quite some time ago to properly save
> persistent
> properties in scripts. NSAppleScript has never done that properly.
> An Apple
> engineer advised me over a year ago that OSAKit is perfectly usable. I
> understand that at least some parts of it are used by Automator, and
> maybe
> even by Script Editor.
>
> I've been after Apple to document this for a year or two, without
> visible
> results.
>
> --
>
> Bill Cheeseman - <email_removed>
> Quechee Software, Quechee, Vermont, USA
> www.quecheesoftware.com
>
> PreFab Software - www.prefabsoftware.com
| Related mails | Author | Date |
|---|---|---|
| jonathan@mugginsof… | Feb 8, 16:48 | |
| Bill Cheeseman | Feb 8, 22:51 | |
| jonathan@mugginsof… | Feb 8, 23:35 | |
| has | Feb 9, 00:37 | |
| Bill Cheeseman | Feb 9, 01:26 | |
| jonathan@mugginsof… | Feb 9, 12:53 | |
| has | Feb 9, 14:53 | |
| Jim Correia | Feb 9, 15:42 |






Cocoa mail archive

