Re: Finding the Xcode 4 "Build Products Path"
Re: Finding the Xcode 4 "Build Products Path"
- Subject: Re: Finding the Xcode 4 "Build Products Path"
- From: Shane Stanley <email@hidden>
- Date: Sat, 13 Oct 2012 10:15:34 +1100
On 13/10/2012, at 1:55 AM, Jerry Krinock <email@hidden> wrote:
> I'm updating my non-Mac-App-Store "shipping" script to ship this product, and would like to know if there is any way for my script to reliably extract that path from Xcode, maybe using xcodebuild or AppleScript.
Something like this?
set DDPathHFS to (path to library folder from user domain as text) & "Developer:Xcode:DerivedData:"
tell application id "com.apple.dt.Xcode" to set theName to name of project 1
set saveTID to AppleScript's text item delimiters
set AppleScript's text item delimiters to {" "}
set theName to text items of theName
set AppleScript's text item delimiters to {"_"}
set theName to theName as text
set AppleScript's text item delimiters to saveTID
tell application id "com.apple.finder" to set theAlias to (item 1 of folder DDPathHFS whose name begins with (theName & "-")) as alias
return POSIX path of theAlias
--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>
_______________________________________________
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