Re: Applescript to find source file in projects
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