Re: Don't waste disk space, use URL redirection services to distribute your scripts...
Re: Don't waste disk space, use URL redirection services to distribute your scripts...
- Subject: Re: Don't waste disk space, use URL redirection services to distribute your scripts...
- From: Martin Orpen <email@hidden>
- Date: Fri, 02 Jul 2004 00:06:17 +0100
on 1/7/04 8:18 pm, Walter Ian Kaye at email@hidden wrote:
>
Umm, their home page indicates an easier way to create a link.
>
If you're doing it for a currently viewed Web page, try this:
Damn, I should have looked over the site before heading straight for that
input box in the browser window :-)
>
tell app "Safari"
>
tell document 1
>
set URL to "http://tinyurl.com/create.php?url=" & URL
>
end tell
>
end tell
>
>
If your URL is on the clipboard, then this should do:
>
>
tell app "Safari"
>
tell document 1
>
set URL to "http://tinyurl.com/create.php?url=" & (the clipboard)
>
end tell
>
end tell
Thanks. Dunno if I'll be using the script anymore - applescript urls don't
seem to be that popular with other scripters...
>
PS. What are keycodes 48 and 36? I can't seem to find 'em.
"Tab" to get to the input box and "Enter" to send the data back. It ain't
pretty, but it seems to work OK.
Regards
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
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.