• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Don't waste disk space, use URL redirection services to distribute your scripts...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Don't waste disk space, use URL redirection services to distribute your scripts...
      • From: Michael Terry <email@hidden>
References: 
 >Re: Don't waste disk space, use URL redirection services to distribute your scripts... (From: Walter Ian Kaye <email@hidden>)

  • Prev by Date: Re: Determining when an app has quit
  • Next by Date: Re: Automator in OS 10.4 (Tiger)
  • Previous by thread: Re: Don't waste disk space, use URL redirection services to distribute your scripts...
  • Next by thread: Re: Don't waste disk space, use URL redirection services to distribute your scripts...
  • Index(es):
    • Date
    • Thread