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

Re: posix path conversion


  • Subject: Re: posix path conversion
  • From: David Hood <email@hidden>
  • Date: Sat, 15 Feb 2003 13:24:08 +1300

On Saturday, February 15, 2003, at 12:18 PM, John Delacour wrote:

Further to my last message, here's one way to do it. There's probably an even simpler way in the shell.


This is the best I've been able to do:

set ur to "file://localhost/Applications/Address Book.app"
tell application "Finder" to set whereAmI to name of startup disk
set Macpath to whereAmI & (do shell script " echo " & ur & " | tr '/' ':' | sed s/file:::localhost//")
return Macpath

Regards,
David Hood
_______________________________________________
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.

References: 
 >Re: posix path conversion (From: John Delacour <email@hidden>)

  • Prev by Date: Script Printing with MS Word?
  • Next by Date: List Volumes ...
  • Previous by thread: Re: posix path conversion
  • Next by thread: Re: posix path conversion
  • Index(es):
    • Date
    • Thread