• 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: Greg Guerin <email@hidden>
  • Date: Tue, 1 Dec 2009 13:42:05 -0700

Steve Mills wrote:

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".


The C function realpath() can do this (see: man 3 realpath). Not sure how to do that in AppleScript except by creating a command-line tool that calls realpath(), or invoking a scripting language that provides access to the realpath() C func.

  -- GG



_______________________________________________
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


  • Prev by Date: Re: How to deal with missing function on Leopard
  • Next by Date: Re: Converting Xcode paths to usable paths
  • Previous by thread: Re: Converting Xcode paths to usable paths
  • Next by thread: Re: Converting Xcode paths to usable paths
  • Index(es):
    • Date
    • Thread