FasdUAS 1.101.10 k l ke Convert URL in clipboard (or prompt user for URL) to a shortened URL (and put that in the clipboard)  Convert URL in clipboard (or prompt user for URL) to a shortened URL (and put that in the clipboard) l   Andytuba  Andytuba  l  2009 nov 12 2009 nov 12 l l c] Choose your URL shortener: set Shortener to "Bitly" (default), "Lessn", "Isgd", or "Tinyurl" Choose your URL shortener: set Shortener to "Bitly" (default), "Lessn", "Isgd", or "Tinyurl" l r m  !! Bitly o 0 shortener Shortener"# "l#$% $l&' &JD If using Lessn, set LessnURL and LessnAPI to the appropriate values'(( If using Lessn, set LessnURL and LessnAPI to the appropriate values%)* )l+,- +r./ .m00114http://yourdomain.com/l/-/ /o 0lessnurlLessnURL ,! Your installation of lessn-226 Your installation of lessn*34 3l 567 5r 89 8m ::;;ABCD1234 9o 0lessnapiLessnAPI 6RL Your API key (shown after logging in to your Lessn installation on the web)7<< Your API key (shown after logging in to your Lessn installation on the web)4=> =l>?@ ?lAB A)# Set to true to prompt user for URLBCCF Set to true to prompt user for URL@DE Dl F Fr GH Gm  boovtrue Ho 0 displaydialog DisplayDialogEIJ IlJKL KlLMN MlOP O# Do not edit below this pointPQQ: Do not edit below this pointNRS RlTU T Select shortenerUVV" Select shortenerSWX Wl=Y YZ=Z[\] Zl^ ^=_` _o 0 shortener Shortener `maabb Lessn [rcd cbef ebgh gbij io 0lessnurlLessnURL jmkkll ?api= ho 0lessnapiLessnAPI fmmmnn &url= do 0 shortenerurl ShortenerURL\op ol"%q q="%rs ro"# 0 shortener Shortener sm#$ttuuIsgdpvw vr(+xy xm()zz{{:http://is.gd/api.php?longurl= yo 0 shortenerurl ShortenerURLw|} |l.1~ ~=.1 o./ 0 shortener Shortener m/0Tinyurl} r47 m45Lhttp://tinyurl.com/api-create.php?url= o 0 shortenerurl ShortenerURL ]l:= r:= m:;,http://bit.ly/api?url= o 0 shortenerurl ShortenerURL  Use Bitly Use BitlyX l l  Get URL from clipboard. Get URL from clipboard l> O> QD kGV lGG  this works in Tiger( this works in Tiger rGV lGR IGR .JonsgClp****null  rtyp mKN  ctxt o 0clipurlClipURL R .ascrerr ******** Q^ kax laa % this works in Earlier Versions> this works in Earlier Versions rax nat mpt  ktxt lap cap lal Ial .JonsgClp****null  rtyp meh  ctxt mlo  reco o 0clipurlClipURL R .ascrerr ******** o 0err_msg I .sysodlogaskrTEXT o 0err_msg m>Asevsalis|Mac HDƽ`H++System Events.app+8CW CoreServicesƽ@8'7 +4Mac HD:System:Library:CoreServices:System Events.app$System Events.appMac HD-System/Library/CoreServices/System Events.app/ l l O I .miscactvnullnull mFscpalisNMac HDƽ`H+3FastScripts.app)b Applicationsƽ@b3#Mac HD:Applications:FastScripts.app FastScripts.appMac HDApplications/FastScripts.app/ l l l  Ask user for URL" Ask user for URL l Z l = o 0 displaydialog DisplayDialog m  boovtrue k Z l > l c n 7  cha m m o 0clipurlClipURL m  TEXT mhttp r m o 0clipurlClipURL Q k I .miscactvnullnull I~ ~.sysodlogaskrTEXT m URL to shorten: } } dtxt o| |0clipurlClipURL{ { btns J m Cancelz mShortenzy x y dflt  mwwx v  r   n   1u u ttxt lts 1r r rsltts  oq q0clipurlClipURLv Rpo p.ascrerr ******** on n0errormsgerrorMsgo Lmm llkjlkj lii 1+ Get bit.ly short URL of URL from clipboardV Get bit.ly short URL of URL from clipboard lMhg PMf Z Le l $ dc  > $!" !l  #ba #c  $% $n &' &7`() ` cha (m__ )m^^ 'o ] ]0clipurlClipURL %m\ \ TEXTba "m #**++httpdc r',,- ,m'([ [ boovfals -oZ Z0tinyurlTinyURLe k/L../0 /r/@12 1b/<34 3b/856 5b/478 7m/299::2curl --stderr /dev/null " 8o23Y Y0 shortenerurl ShortenerURL 6o47X X0clipurlClipURL 4m8;;;<<" 2oW W0curlcmdcurlCMD0=> =lAAVUTVUT>?@ ?lAASABS A)# Run the script and get the result:BCCF Run the script and get the result:@DR DrALEF ElAHGQP GIAHOHN O.sysoexecTEXTTEXT HoADM M0curlcmdcurlCMDNQP FoL L0tinyurlTinyURLRfKJ K conscaseJhgIJ IlIHGIHGJKL KlNMFE MZNNODP NlNSQCB Q=NSRS RoNQA A0tinyurlTinyURL SmQR@ @ boovfalsCB OZVmTU?> TlVYV=< V=VYWX WoVW; ;0 displaydialog DisplayDialog XmWX: : boovtrue=< Uk\iYYZ[ ZI\a987 9.miscactvnullnull87[\6 \Ibi5]4 5.sysodlogaskrTEXT ]mbe^^__Malformed URL46?>D Pkp``ab arpucd cmpq3 3 boovtrue do2 2"0copytoclipboardCopyToClipboardbef eZvgh10 glvyi/. i=vyjk jovw- -0 displaydialog DisplayDialog kmwx, , boovtrue/. hQ|lmn lkoopq pI+*) +.miscactvnullnull*)qr( rI'st '.sysodlogaskrTEXT sbuv umwwxxShortened URL: vo& &0tinyurlTinyURLt%yz % btns yJ{{|} |m~~ Cancel}$ m"Copy to clipboard$z#" # dflt m!!"( mR  .ascrerr ******** o 0errormsgerrorMsg nr m  boovfals o "0copytoclipboardCopyToClipboard10f Z l = o "0copytoclipboardCopyToClipboard m  boovtrue k l & Set clipboard to bit.lified URL@ Set clipboard to bit.lified URL O I .JonspClpnull**** l c l o 0tinyurlTinyURL m  ctxt msevsalis|Mac HDƽ`H++System Events.app+8CW CoreServicesƽ@8'7 +4Mac HD:System:Library:CoreServices:System Events.app$System Events.appMac HD-System/Library/CoreServices/System Events.app/FEL l  O I .miscactvnullnull msfrialis:Mac HDƽ`H+3 Safari.app;9 Applicationsƽ@;3Mac HD:Applications:Safari.app Safari.appMac HDApplications/Safari.app/   .aevtoappnull**** .aevtoappnull**** k)3DWK 0err_msg 0errormsgerrorMsg: 0:akmtz*9;^w~ 0 shortener Shortener 0lessnurlLessnURL 0lessnapiLessnAPI 0 displaydialog DisplayDialog 0 shortenerurl ShortenerURL  rtyp  ctxt .JonsgClp****null 0clipurlClipURL  reco  ktxt 0err_msg .sysodlogaskrTEXT .miscactvnullnull  cha   TEXT  dtxt  btns  dflt  rslt  ttxt 0errormsgerrorMsg 0tinyurlTinyURL 0curlcmdcurlCMD .sysoexecTEXTTEXT "0copytoclipboardCopyToClipboard .JonspClpnull****EOEOEOeEO%%%EYEYEYEOaC*aal E`W.X*aal a&a,E`W Xj UOa*j UOej_[a\[Zk\Za2a&a  a!E`YhO5*j Oa"a#_a$a%a&lva'la( O_)a*,E`W X+hYhOga,D_[a\[Zk\Za2a&a- fE`.Ya/%_%a0%E`1O_1j 2E`.VO_.fe*j Oa3j YhYceE`4Oe7'*j Oa5_.%a$a6a7lva'la W X+fE`4YhO_4ea _.a&j 8UYhOa9*j Uascr ޭ