Adding Files with AppleScript
Adding Files with AppleScript
- Subject: Adding Files with AppleScript
- From: Mark Coniglio <email@hidden>
- Date: Tue, 24 Jan 2006 11:30:14 -0500
I'm creating a script to automatically convert about 100 CodeWarrior
projects (a myriad of plugins for my software) to XCode projects.
I've sorted almost everything out, except for this one last bit:
I am adding files with code like this
set fileID to make new file reference with properties {file
kind:"sourcecode.cpp.cpp", name:fileName, full path:posixPath}
this works -- it adds the file to the project, and sees it as a
source code file (syntax coloring, etc.). But the problem is that the
source code file is not being added to the "Compile Sources" build
phase as a result of performing this command.
tell target 1
tell build phase "Build ResourceManager Resources"
make new build file with properties {full path:posixPath}
end tell
end tell
as a guess, but this doesn't work.
Any solutions for this problem?
Best Wishes,
Mark
--
=====================================================================
Mark Coniglio, Artistic Co-Director | email@hidden
Troika Ranch Dance Theater | http://www.troikaranch.org
=====================================================================
_______________________________________________
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