Encoded file URL to Mac or Posix path...
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