• 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: How can I set the active executable with AppleScript?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I set the active executable with AppleScript?


  • Subject: Re: How can I set the active executable with AppleScript?
  • From: Scott Tooker <email@hidden>
  • Date: Wed, 13 Feb 2008 08:25:50 -0800


On Feb 13, 2008, at 5:18 AM, Stefan Haller wrote:

Robert Purves <email@hidden> wrote:

How can I set the active executable with AppleScript?

We are doing something like this:

tell application "Xcode"
tell project "MyProj"
set e to executables whose path is "/path/to/MyTest.app"
if length of e is 0 then
set e to make new executable \
with properties {name:"MyExecutable", path:"/path/to/ MyTest.app"}
else
set e to first item of e
end if
set active executable to e
end tell
end tell

Yes, you want to create a new executable item and set it as the active executable.




Note that instead of "/path/to/MyTest.app" you probably want
"/path/to/MyTest.app/Contents/MacOS/MyTest".

Nope, you'd just want to set the new executable to point to the .app on disk, Xcode will figure out the rest.


Scott




-- Stefan Haller Ableton http://www.ableton.com/ _______________________________________________ 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

_______________________________________________ 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
References: 
 >Re: How can I set the active executable with AppleScript? (From: email@hidden (Stefan Haller))

  • Prev by Date: Re: Go Run
  • Next by Date: Re: Go Run
  • Previous by thread: Re: How can I set the active executable with AppleScript?
  • Next by thread: saving a xcode project..
  • Index(es):
    • Date
    • Thread