Re: Re: Switching executable automatically
Re: Re: Switching executable automatically
- Subject: Re: Re: Switching executable automatically
- From: "Pelaia II, Tom" <email@hidden>
- Date: Thu, 31 Dec 2009 15:21:21 -0500
- Acceptlanguage: en-US
- Thread-topic: Re: Switching executable automatically
One option which helps for projects with custom executables is to create a user script which you can place in the Xcode User Scripts menu. I use a complex one to manage the builds and executables of a project with numerous applications and custom executables. In my case the target and executable change depending on the selected source file. However, you might find it better to have a script for each target/executable pair and store them in a sub menu. The great thing about Xcode user scripts is that you can use the scripting language of your choice. AppleScript is ideal for this particular task since Xcode is scriptable using AppleScript.
Here is a simple example from which you can customize for your project:
#!/usr/bin/osascript
on run
tell application "Xcode"
tell project of active project document
set active target to the first target where name is "TheTarget"
set active executable to the first executable where name is "TheExecutable"
end tell
end tell
set output to "The Target and Executable have been changed..."
end run
_______________________________________________
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