Posted By

Wendelboe on 09/08/09


Tagged

safari download speed downloads boards bulletin


Versions (?)

Add Download to Speed Download (Lite)


 / Published in: AppleScript
 

URL: http://cphcreatives.dk

Ever needed to download a bunch of files, but annoyed by having to copy them all to Speed Download? This is for you..!

http://rapidshare.com/files/131035061/file1.rar http://rapidshare.com/files/131049211/file2.rar http://rapidshare.com/files/131051138/file3.rar

If this looks familiar, and you're ever bothered by copying the it, opening Speed Download, clicking "new download", pasting the chunk of text and clicking "add", this should make you happy.. At least I know it'll save me a lot of clicking and pressing..

I suggest you create a service in Automator and add it to your browser or all apps...

P.S. If you use the full version of Speed Download, please omit the "Lite" from "Speed Download Lite"..

  1. tell application "Safari"
  2. set selecTxt to (do JavaScript "(getSelection())" in document 1)
  3. end tell
  4.  
  5. on splitText(delimiter, someText)
  6. set prevTIDs to AppleScript's text item delimiters
  7. set AppleScript's text item delimiters to delimiter
  8. set output to text items of someText
  9. set AppleScript's text item delimiters to prevTIDs
  10. repeat with i in output
  11. tell application "Speed Download Lite"
  12. AddURL i
  13. end tell
  14. end repeat
  15. end splitText
  16.  
  17. splitText(" ", selecTxt)

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: Wendelboe on September 8, 2009

Any attempts to make this script faster, are very welcome.. Not sure what licenses are applied to scripts here at snipplr, but obviously I consider this CC0 1.0 Universal (http://creativecommons.org/publicdomain/zero/1.0/) and just hope you can use it in some form..

You need to login to post a comment.