• 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
XCode Scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XCode Scripting


  • Subject: XCode Scripting
  • From: Benoit Ogier <email@hidden>
  • Date: Fri, 8 Dec 2006 18:11:04 +0100

Hi, 

I need to script XCode to set some build settings on a large set of projects.

My code seems ok (no errors), but build settings stay unchanged.

My code is :

1 tell application "XCode" 
2 open file theFile
3 set theProject to the first project document
4 set theTarget to the first target of theProject
5 set theConfig to the first build configuration of theTarget
6 set theBS to the flattened build setting "ARCHS" of theConfig
7 set the value of theBS to "ppc"
8 set theVal to the value of theBS  -> just for test
9 close the front window saving yes
10 end tell

On line 7, the value of theBS is set to "ppc", but on line 8, theVal stays to "$(NATIVE_ARCH)".

Any idea ?

Thanks,

BO

-- 

Benoît Ogier{

Carte Blanche Conseil

47, rue de Lancry

75010 Paris

Tel : +33 1 42 41 21 21

Fax : +33 1 42 41 70 40

email : email@hidden

};

-- 



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Send selected messages as attachments in Mail.app
  • Next by Date: Script a QuickTime Player Movie Recording
  • Previous by thread: Re: Send selected messages as attachments in Mail.app
  • Next by thread: Script a QuickTime Player Movie Recording
  • Index(es):
    • Date
    • Thread