Re: Executing AppleScript from NSString?
Re: Executing AppleScript from NSString?
- Subject: Re: Executing AppleScript from NSString?
- From: Bill Cheeseman <email@hidden>
- Date: Sun, 23 Dec 2001 17:06:20 -0500
on 01-12-23 3:59 PM, Enigmarelle Development at email@hidden
wrote:
>
You could pass it to osascript I think (never done it). man osascript in
>
terminal.
>
"osascript executes the given script file, or standard input if none is
>
given."
You should also be able to do it using the new features offered by
AppleScript Studio, although I haven't gotten quite this far with ASS yet.
ASS allows you, somehow, to substitute AppleScript statements for
Objective-C code in a Cocoa application.
One possibility would be to call the Run Script AppleScript command
implemented in the Standard Additions scripting addition. Run Script can
take a string as its direct parameter, as long as the string is a valid
AppleScript statement.
But there may be a more direct way to do it.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont