Creating an Xcode target in AppleScript
Creating an Xcode target in AppleScript
- Subject: Creating an Xcode target in AppleScript
- From: Brian Arnold <email@hidden>
- Date: Fri, 16 Dec 2005 14:25:05 -0500
- Thread-topic: Creating an Xcode target in AppleScript
Title: Creating an Xcode target in AppleScript
Fellow Scripters
I would like to leverage the sagely advice given to me by kai (thanks!), and create non-aggregate (leaf) and aggregate (recursively containing modules) external targets for building the libraries.
Er, in Xcode.
The thing I am struggling with is the syntax for 'make new target'.
Here is the relevant snippet:
set foundLibraries to name of every target of active project document
repeat with i from 1 to the length of libraryNames
if (item i of libraryNames is not in foundLibraries) then
tell active project document
make new target with properties {name:item i of libraryNames}
end tell
end if
end repeat
This creates an aggregate target with read-only properties. If I try to set the read-only properties during the make new command, it complains.
I could not find documentation or sample code for this. Pointers would be helpful.
- Brian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden