Unix/HFS path conversion


/ Published in: AppleScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. set theUnixPath to "/Users/Shared/"
  2. (POSIX file theUnixPath) as string
  3. --> "Macintosh HD:Users:Shared:"
  4.  
  5. set theMacOSXPath to "Macintosh HD:Users:Shared:"
  6. POSIX path of theMacOSXPath
  7. --> "/Users/Shared/"

URL: http://applescriptsourcebook.com/viewtopic.php?pid=46908

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.