Jan 13, '10 07:30:00AM • Contributed by: jacksonchung
Note that this was originally published here, but I am the author of the hint. I thought this hint was necessary as the iPhone isn't capable of downloading and attaching torrent files to email messages, as is described in this older hint.
The idea behind this hint is very simple:
- Copy the URL of the desired torrent.
- Using a secondary email account, send the torrent link via email to the primary email with a preset Subject which will activate a predefined Mail Rule to launch an AppleScript.
- The AppleScript will launch Transmission/uTorrent to open that URL and download the file.
Get the script from the original blog post above, or paste it in AppleScript Editor yourself using this code:
(*Transmission via email by Jackson Chung*)
using terms from application "Mail"
on perform mail action with messages theMessages for rule Torrent
tell application "Mail"
repeat with theMessage in theMessages
set theText to content of theMessage
set the clipboard to (theText)
end repeat
end tell
tell application "Transmission" to activate
tell application "System Events"
tell process "Transmission"
keystroke "u" using {command down}
keystroke (theText)
key code 36
end tell
end tell
end perform mail action with messages
end using terms from- From is equal to [secondary@emailaddress.com]
- Subject is equal to [Download torrent]
- Perform the following actions: Run AppleScript [location of script]
Transmission needs to be configured so that downloads start automatically, and make sure to uncheck 'Display "adding transfer" options window,' or it won't begin. uTorrent's default settings work fine.
When sending the torrent URL on your iPhone, remove the email signature from the message. The script copies the entire content of the body and pastes it into Transmission's (uTorrent's) 'Open Torrent Address' field.
