On Sep 21, 2005, at 9:07 AM, Dave McCaldon wrote:
I can actually determine what I need from the destination directory and path of the cfbp elements.
Thanks for the info on properties of, that's exactly what I've been looking for!
Now I need to find out how to insert a new cfbp element!
I am not sure if this is what you are looking for, but here are some pointers which might help you. This is only supported in Xcode 2.1 though...:
- If you are trying to copy a file from within the project into the copy files build phase of a target, then the following should work: tell application "Xcode" tell project "cocoTargetSuiteTest" add file reference "main.m" to build phase 1 of target 1 get name of every build file of build phase 1 of target 1 end tell end tell
- Presently you CANNOT add a file to a build phase unless it is present in the project.
- To add a file to a project from another location something like this should work: set test to (choose file) set testPath to POSIX file (POSIX path of test) tell application "Xcode" tell project 1 tell group "resources" make new file reference with properties {full path:POSIX path of test, name:name of (info for testPath)} end tell end tell end tell
Gouri
|