Re: How can I set the active executable with AppleScript?
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