• 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
Encoded file URL to Mac or Posix path...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Encoded file URL to Mac or Posix path...


  • Subject: Encoded file URL to Mac or Posix path...
  • From: Peter Bunn <email@hidden>
  • Date: Sat, 10 Mar 2007 04:10:49 -0600

Assuming a file named "éøü¥" exists on the desktop, getting a file URL
for it is useful for some purposes...

tell application "System Events"
   set target_file to "Macintosh HD:Users:username:Desktop:éøü¥" as alias
   set target_URL to URL of target_file
end tell

... returns
"file://localhost/Users/username/Desktop/éøü¥".

Anyone know how to easily coerce that back to an unencoded Mac or Posix
file path?

Thanks.

Peter B.

-----

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Encoded file URL to Mac or Posix path...
      • From: Tetsuro KURITA <email@hidden>
    • Re: Encoded file URL to Mac or Posix path...
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: SV: Write defaults
  • Next by Date: Re: Global variables
  • Previous by thread: Address Book Related Names Search
  • Next by thread: Re: Encoded file URL to Mac or Posix path...
  • Index(es):
    • Date
    • Thread