Here’s a simple ruby script to download torrent files in Safari sent to you/an account as URLs in Twitter direct messages.
It could be used on your home server to download torrent files you send to it from something like your iPad.
I’ve set it up to run every fifth minute (using cron) to check for new files, but can of course be adjusted to something that works for you.
Also, make sure to point Safari’s download folder (in Safari’s preferences) to the same folder as you have Transmission automatically watch for
.torrent files so the download actually starts.
Lets say you have an extra computer at home which can be used to download Linux distros using Transmission on Mac OS X. Here’s how you can let the computer iChat you when a download is complete.
- Sign up for a new iChat screen name and add your normal user as a buddy.
- In Transmission, open Preferences
→ Transfers and set the folder for incomplete files to something different than the “Default download location”.
- Start Automator (in /Applications) and create a new workflow
- Add the “Run AppleScript” action and paste in this code (replace YOURBUDDY with the scree name of your own iChat account:
- Save as a plugin and choose “Folder action” in the “Save As” dialog. Select the folder you setup Transmission to use as the “Default download location”.
- Done! The script should now send you an iChat message whenever a new file is added to the folder.
I created this setup a pretty long time ago and still use it, but these days together with a Growl notification plugin that also twitters me when the download is complete.
CSS is in progress