Re: Converting Xcode paths to usable paths
Re: Converting Xcode paths to usable paths
- Subject: Re: Converting Xcode paths to usable paths
- From: Jens Miltner <email@hidden>
- Date: Thu, 10 Dec 2009 11:32:06 +0100
Am 01.12.2009 um 21:23 schrieb Steve Mills:
How can one convert, in AppleScript, a bi-directional (for lack of a
better term that I'm aware of) Xcode path to a real Posix path? I
need to turn "/depot/cmyk/creatortech/desktop/mac/C2Mac/../../../../
xcodebuilds/Creator.build/Debug/Preprocessed-Info.plist" into "/
depot/cmyk/xcodebuilds/Creator.build/Debug/Preprocessed-Info.plist".
I've submitted bugs in the past about Xcode using these weird paths
in places it shouldn't, but not this exact issue, which I'll do now.
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 & "\")\""
</jum>
_______________________________________________
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