• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Creating an Xcode target in AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Best practices for creating and comparing lists of text?
  • Next by Date: iTunes: Playback Position and/or "Mark As Unplayed"
  • Previous by thread: Re: Best practices for creating and comparing lists of text?
  • Next by thread: iTunes: Playback Position and/or "Mark As Unplayed"
  • Index(es):
    • Date
    • Thread