• 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
posix path conversion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

posix path conversion


  • Subject: posix path conversion
  • From: Paul Skinner <email@hidden>
  • Date: Fri, 14 Feb 2003 16:17:08 -0500

I seem to vaugely recall a command for converting posix paths to applescript paths. Am I mis-remembering?
I could convert it myself, but I really think I'm missing something.

I have a path like so...

file://localhost/Applications/Address Book.app/

this is the url of a file as returned by the finder.
I'd like to convert it to an alias, path, file ref, etc.

passing the posix style URL back through 'Posix file' is the closest I can find. It returns...

set f to "file://localhost/Applications/Address Book.app/"
POSIX path of f
-->"/file/::localhost:Applications:Address Book.app:"

Whack! I assume the 'posix path' command is a wrapper for some command line translation tool. It tries to reverse the translation and gets pooched.

Any clues?
--
Paul Skinner
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: posix path conversion
      • From: John Delacour <email@hidden>
    • Re: posix path conversion
      • From: John Delacour <email@hidden>
    • Re: posix path conversion
      • From: Rick Bargerhuff alias cougar <email@hidden>
    • Re: posix path conversion
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Importing Data from Excel to Filemaker
  • Next by Date: Re: Q: specifying text in a variable to a color when inserting into Apple's Mail.app?
  • Previous by thread: Re: Profiler
  • Next by thread: Re: posix path conversion
  • Index(es):
    • Date
    • Thread