• 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: email@hidden (Stefan Haller)
  • Date: Wed, 13 Feb 2008 14:18:58 +0100
  • Organization: Ableton

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

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


--
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

  • Follow-Ups:
    • Re: How can I set the active executable with AppleScript?
      • From: Scott Tooker <email@hidden>
References: 
 >How can I set the active executable with AppleScript? (From: Robert Purves <email@hidden>)

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