better alternative to [NSAppleScript executeAndReturnError:] for executing scripts in scripts menu
better alternative to [NSAppleScript executeAndReturnError:] for executing scripts in scripts menu
- Subject: better alternative to [NSAppleScript executeAndReturnError:] for executing scripts in scripts menu
- From: Jesse Grosjean <email@hidden>
- Date: Tue, 1 Aug 2006 14:19:14 -0400
My application implements its own script menu and it uses
[NSAppleScript executeAndReturnError:] to run scripts when someone
chooses a script from the scripts menu. This works fairly well, but
recently I remember seeing a discussion that I think said this wasn't
the best way to execute scripts in this case. I don't remember, but
maybe it was saying that it was better to use osascript from the
command line to execute them. Problem is I can't seem to relocate
that discussion, does anyone here know where I might have read that,
or have suggestions on if it's good to use [NSAppleScript
executeAndReturnError:] from within a cocoa application.
Thanks,
Jesse
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden