• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Adding Files with AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Adding Files with AppleScript
      • From: Mark Coniglio <email@hidden>
  • Prev by Date: Re: gcc-3.3: installation problem
  • Next by Date: Re: Adding Files with AppleScript
  • Previous by thread: Re: gcc-3.3: installation problem
  • Next by thread: Re: Adding Files with AppleScript
  • Index(es):
    • Date
    • Thread