RE: Encoded file URL to Mac or Posix path...
RE: Encoded file URL to Mac or Posix path...
- Subject: RE: Encoded file URL to Mac or Posix path...
- From: Emmanuel <email@hidden>
- Date: Tue, 13 Mar 2007 20:38:15 +0100
At 12:00 PM -0700 3/13/07, Scott Babcock <email@hidden> wrote:
There's an easy way to do this without using scripting additions:
set fileURI to "file://localhost/Users/username/Desktop/éøu
¥"
set posixPath to (do shell script "perl -e 'use URI::file; print
URI->new(\"" & fileURI & "\")->file;'")
--> "/Users/username/Desktop/????"
Oh, that kind of easy. I was thinking the other kind.
Emmanuel
_______________________________________________
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