Re: Safari Download Folder?
Re: Safari Download Folder?
- Subject: Re: Safari Download Folder?
- From: Emmanuel Levy <email@hidden>
- Date: Thu, 5 Mar 2009 17:20:08 +0100
At 4:38 PM +0100 3/5/09, KOENIG Yvan wrote:
While we are on this subject, is there a shell script command
allowing us to decipher this kind of URL:
set theURL to "file://localhost/Users/yvankoenig/Desktop/Sans titre.rtfd/"
I want to get the osX path:
"Macintosh HD:Users:yvankoenig:Desktop:Sans titre.rtfd"
I know that I may use Satimage's Unescape
Still better, you can use "absoluteurl", the Ultimate Swiss Army
Knife for urls and paths:
absoluteURL
"file://localhost/Users/yvankoenig/Desktop/Sans titre.rtfd/" as
unix path
-- "/Users/yvankoenig/Desktop/Sans titre.rtfd/"
or you can do "as alias" but I can't test that because the file isn't
on my machine ...
but I wish to stay with Apple components.
Doh ...
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