Re: Converting Xcode paths to usable paths
Re: Converting Xcode paths to usable paths
- Subject: Re: Converting Xcode paths to usable paths
- From: Steve Mills <email@hidden>
- Date: Thu, 10 Dec 2009 09:46:51 -0600
On Dec 10, 2009, at 04:32:06, Jens Miltner wrote:
> It has been discussed to great length whether or not this is a problem, but in case you still need to do the conversion, how about using a shell to do the conversion, e.g.
>
> set aPath = "/depot/cmyk/creatortech/desktop/mac/C2Mac/../../../../xcodebuilds/Creator.build/Debug/Preprocessed-Info.plist"
> set RealPath to do shell script "echo \"$(cd $(dirname \"" & aPath & "\") && pwd)/$(basename \"" & aPath & "\")\""
Thanks for that. I converted the path manually in AppleScript by chopping off the previous dir when I get to a "..", which is good enough for me because our paths will never have symlinks in them. If something weird happens and symlinks to appear in the paths, I'll use your method. Thanks again!
Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/
_______________________________________________
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