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 22:53:08 +0100
After Chris' opportune intervention, the script stands as:
................................................................
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 x to POSIX file posixPath
set the clipboard to "Tell application \"Finder\"" & return & "Open alias
\"" & x & "\"" & return & "end tell"
..................................................................
(Bill: I didn't mean to sound like I wasn't getting any help - no, really,
this list is the helpfullest.)
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.