Re: Adding Files with AppleScript
Re: Adding Files with AppleScript
- Subject: Re: Adding Files with AppleScript
- From: Mark Coniglio <email@hidden>
- Date: Tue, 24 Jan 2006 12:40:42 -0500
OK -- answered my own question.
The solution is to do this command
add fileID to target 1 of project 1
after "make new file reference". This adds the source file to the
"Compile Sources" build phase, and the resource files to the "Build
ResourceManger Resources" phase.
Best,
Mark
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
--
=====================================================================
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