Skip navigation.
 
mlbetter alternative to [NSAppleScript executeAndReturnError:] for executing scripts in scripts menu
FROM : Jesse Grosjean
DATE : Tue Aug 01 20:19:14 2006

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

Related mailsAuthorDate
mlbetter alternative to [NSAppleScript executeAndReturnError:] for executing scripts in scripts menu Jesse Grosjean Aug 1, 20:19
mlRe: better alternative to [NSAppleScript executeAndReturnError:] for executing scripts in scripts menu Bill Cheeseman Aug 1, 23:50