Re: Scripting build settings
Re: Scripting build settings
- Subject: Re: Scripting build settings
- From: David Durkee <email@hidden>
- Date: Thu, 20 Oct 2005 11:58:38 -0500
Thanks, that did it. it never occurred to me to try to set a property
on an object that doesn't exist yet in order to create it.
David
On Oct 20, 2005, at 11:31 AM, Gouri Jonnalagadda wrote:
This should work:
tell application "Xcode"
tell project 1
set value of build setting "TEST" of build configuration 1
of target 1 to "I am here"
get value of build setting "TEST" of build configuration 1
of target 1
end tell
end tell
On Oct 20, 2005, at 9:06 AM, David Durkee wrote:
Hi,
I am attempting to write an AppleScript to identify build settings
that appear in a particular build configuration of all targets in
a project and migrate them to the same build configuration of the
project. The first part is going swimmingly, but I have not found
any way that works of adding a build setting to a build
configuration in a project. I have tried duplicate, move, and
make. For example:
tell application "Xcode"
set newbs to make new build setting at end of build
configuration "Default" of project "Test" with data
{name:"FRAMEWORK_SEARCH_PATHS", value:"/System/Library/Frameworks"}
end tell
gets an InternalScriptError.
Does anyone know if this is possible, and if so, what is the syntax?
If the build setting already exists, I can set its value.
David
_______________________________________________
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
_______________________________________________
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