Re: Applescript
Re: Applescript
- Subject: Re: Applescript
- From: Chris Espinosa <email@hidden>
- Date: Mon, 25 Oct 2004 11:00:10 -0700
On Oct 24, 2004, at 10:29 PM, Larry Fransson wrote:
Is there a way to have an AppleScript run as part of a targets build
phase?
Do you mean something like Project -> New Build Phase -> New
AppleScript Build Phase?
That's not what he wants. The AppleScript Build Phase compiles
AppleScripts into compiled scripts in your project; it doesn't execute
them as part of your build.
The best way to incorporate AppleScript execution into your build is
via a Shell Script build phase that executes either the 'osascript'
command (to compile and execute a script) or 'open -a foo.app' command
to execute a compiled AppleScript applet.
Note that AppleScript is primarily intended to send messages to running
user applications, and it can interact with the user, so it usually
requires a Window Server connection. This means that an AppleScript
executed during a build will work when the build is initiated from the
Xcode IDE, but possibly not when it's initiated from the command-line
'xcodebuild'.
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden