• 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: Converting Xcode paths to usable paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Converting Xcode paths to usable paths
      • From: Steve Mills <email@hidden>
References: 
 >Converting Xcode paths to usable paths (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Problem Getting Application to Launch Using Debugger
  • Next by Date: Re: SCM Error 150000 ("pbxuser is not under version control")
  • Previous by thread: Re: Converting Xcode paths to usable paths
  • Next by thread: Re: Converting Xcode paths to usable paths
  • Index(es):
    • Date
    • Thread