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 15:12:01 -0500
- Thread-topic: Creating an Xcode target in AppleScript
Title: Creating an Xcode target in AppleScript
Fellow Xcode users,
I’m cross-posting this on applescript-users as well, but since my AppleScript question involves Xcode, a developer (or Xcode engineer) on this list might know a thing or two regarding my question.
I would like to create non-aggregate (leaf) and aggregate (recursively containing modules) external targets for building a number libraries, via AppleScript.
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’ve tried to use ‘target template’, but that causes trouble (I’m flying blind).
I could not find documentation or sample code for this. Pointers would be helpful.
Thanks!
- Brian
--
Brian Arnold, Mac Developer
The MathWorks, Inc.
(508) 647-8006
_______________________________________________
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