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

Scripting XCode with Applescript


  • Subject: Scripting XCode with Applescript
  • From: Benoit Ogier <email@hidden>
  • Date: Tue, 30 Aug 2005 14:48:10 +0200

I use Applescript to create bundles that use my app. I just switch to XCode 2.1, and my scripts does not run.
My scripts duplicate a template bundle, and use XCode to set proper values : name of the main target, name of the executable, and name of the product name.


On 2.1, I get the following error in XCode when I try to set the product name :

File: /SourceCache/DevToolsBase/DevToolsBase-620.0.81/pbxcore/ Target.subproj/PBXTarget.m
Line: 2361
Object: <PBXNativeTarget:0x0607f090>
Method: setProductName:


Don't invoke this method when build configurations are enabled.


My code is :

tell application "Xcode"
	activate
	set dst "test.xcodeproj"
	open file dst

	set prj to project 1
	set tar to the active target of prj

	set name of tar to dstname
	set name of the executable of tar to dstname
	set the product name of tar to dstname

	close the front window
end tell

Is there any solution to solve this error, or a better way to generate automatically XCode project from a text list ?

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Scripting XCode with Applescript
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Re: Original item in Finder (oops)
  • Next by Date: Re: Basic Eudora Question: Make New Mailbox (Applescript-users Digest, Vol 2, Issue 570)
  • Previous by thread: Re: Original item in Finder
  • Next by thread: Re: Scripting XCode with Applescript
  • Index(es):
    • Date
    • Thread