• 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
Re: Applescript to find source file in projects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript to find source file in projects


  • Subject: Re: Applescript to find source file in projects
  • From: Scott Tooker <email@hidden>
  • Date: Thu, 28 Sep 2006 09:46:17 -0700

Try something like this:

tell application "Xcode"

get project relative path of file references of front project whose file kind contains "sourcecode"

end tell


This will list project relative paths for all file references in the project that have a file type that contains "sourcecode".

Note that "file references of project" returns a flat list of all file references in the project (not crossing cross-project boundaries). Also the "file type" returns the file type identifier used in Xcode to type files (for example "sourcecode.c.h"). You can check out the "File Types" prefs pane for a full list of the file types that Xcode understands.

Scott

On Sep 28, 2006, at 7:35 AM, Eric wrote:

I'm assuming this is possible, useful and/or has already been done by someone.

I have large project tree with many xcode project files. I need to know which project file(s) are compiling a source file (x.cpp). Has anyone written an Applescript that is capable of recursively searching folders for xcode project files and then determine whether or not that project file is referencing a .cpp file?

If this has not been done before, any hints or tips on how such an Applescript could be written would be helpful.

Thanks.

_______________________________________________
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
References: 
 >Applescript to find source file in projects (From: Eric <email@hidden>)

  • Prev by Date: Re: Problem with Xcode linker flags
  • Next by Date: DWARF and gcc 3.3?
  • Previous by thread: Applescript to find source file in projects
  • Next by thread: Problem with Xcode linker flags
  • Index(es):
    • Date
    • Thread