• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Applescript
      • From: Thaddeus Cooper <email@hidden>
References: 
 >Applescript (From: Thaddeus Cooper <email@hidden>)
 >Re: Applescript (From: Larry Fransson <email@hidden>)

  • Prev by Date: Re: Setting watchpoints in GDB
  • Next by Date: Re: Applescript
  • Previous by thread: Re: Applescript
  • Next by thread: Re: Applescript
  • Index(es):
    • Date
    • Thread