Scripting XCode with Applescript
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