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