Script on completion

Ask for help and report issues with the Mac OS X version of Transmission
Post Reply
Popolani
Posts: 6
Joined: Sat Feb 18, 2012 9:41 pm

Script on completion

Post by Popolani »

Hi guys,
I am a very happy user of Transmission and I would like to use the script option on download completion. I think what I'm looking for is simple but I don't know one thing about scripting. The script would send an e-mail displaying the name of the completed torrent and the time of completion. And to be perfect, does it have to use the Mail app or could it use another way ?
Would that be possible ?
Thanks
Popolani
Posts: 6
Joined: Sat Feb 18, 2012 9:41 pm

Re: Script on completion

Post by Popolani »

Thank you very much for your reply. However I must have misunderstood something because it doesn''t work for me. I paste the following lines in an applescript window and tried to execute but I have an alert message.

#!/bin/bash
mail -s <my e-mail@gmail.com> <<EOF
Subject: "$TR_TORRENT_NAME" finished.
This is an automatic message from your friendly transmission-daemon
($TR_APP_VERSION), your files are in $TR_TORRENT_DIR .

Thanks.
Popolani
Posts: 6
Joined: Sat Feb 18, 2012 9:41 pm

Re: Script on completion

Post by Popolani »

I have problems to set the path in the terminal window.
Let's say my TextEdit file is on the desktop, saved as "Script.rtf
I enter this line in the Terminal : chmod +x <Desktop/Script.rtf>
but I have this answer : -bash: syntax error near unexpected token `newline'
What did I do wrong ?
Thanks.
Popolani
Posts: 6
Joined: Sat Feb 18, 2012 9:41 pm

Re: Script on completion

Post by Popolani »

Sorry to bother you again but it is not working for me !
I did what you said and I have this black icon on my desktop. I gave the path of this file in Transmission preferences and nothing happens when a download is completed.
Basically, I don't understand how deleting the rtf extension makes this file a script.
Post Reply