• 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: 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

References: 
 >Converting Xcode paths to usable paths (From: Steve Mills <email@hidden>)
 >Re: Converting Xcode paths to usable paths (From: Jens Miltner <email@hidden>)

  • Prev by Date: Re: SCM Error 150000 ("pbxuser is not under version control")
  • Next by Date: Re: adding an OS X target to an iPhone project
  • Previous by thread: Re: Converting Xcode paths to usable paths
  • Next by thread: Re: Converting Xcode paths to usable paths
  • Index(es):
    • Date
    • Thread