Re:help converting URL to alias for OmniGraffle
Re:help converting URL to alias for OmniGraffle
- Subject: Re:help converting URL to alias for OmniGraffle
- From: Michael Cytrynowicz <email@hidden>
- Date: Sun, 16 Mar 2003 18:01:46 +0100
Uhm, just to add,
almost all of the script is by John Delacour , of course, from a Feb ms.
the last line is by me, which goes to show how much I know ;-)
(Tx, JD)
....
set URI to the clipboard
set posixPath to do shell script "perl -e '
$_ = q~" & URI & "~;
s~file:/+~~;
s~localhost~~;
s~%([0-F][0-F])~chr(hex($1))~eg;
print'"
set openfileScript to "Open " & POSIX file posixPath & " as alias"
set the clipboard to openfileScript
...
Mike C
_______________________________________________
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.