Hey guys, I recently got this little missing feature working in Transmission. The following procedure will make your Mac automatically shut down when all downloads complete. Linux will be similar except that the shut down command will differ in the script :)
The following procedure depends on the Transmission API, so be sure turn on the web admin interface under Remote in the Transmission preferences, listening on (default) port 9091.
Now, create a virtualenv and install transmissionrpc:
(Naturally, you’ll need to install virtualenv first. I did this using a Homebrew install of Python and then simply running pip install virtualenv).
Tip: Don’t create your virtualenv in a directory with spaces, I tried :)
Create the Shut Down script:
mkdir ~/Library/Application\ Support/Transmission/Scripts/ vi "Shut Down"
Script Contents (update the first line with your username):
Configure Transmission to close without prompting when downloads are complete:
Under Preferences / General, tick Quit with active transfers and Only when transfers are downloading just below it, or alternatively un-tick both these check boxes:
Finally, setup the script to run when downloads complete:
Under Preferences / Transfers / Management, tick When download completes and browse to the location of your script. If you can’t see the Library directory, you may use Cmd+Shift+G and enter the path ~/Library/Application Support/Transmission/Scripts/ to get there.