Since this is now a different topic, I am putting this reply to this post here.
Well… there isn’t one. At least not directly. But don’t worry, I can walk you through it.
It’s much easier than it seems. There are several steps, but you only have to do them once, and setting up the first one will let you use Pushover for anything so it’s well worth your time.
What I did was write a shell script “wrapper” that will basically send whatever text I give it as an “argument” via Pushover. I called it “po.sh” because [P]ush[O]ver and I’m devilishly clever when it comes to naming things
The idea is pretty simple:
Download the script and save it somewhere (I recommend
/usr/local/bin/po.shto include your specific Pushover.net information (token and user key) in the variable names (I tried to make it as clear as possible what goes where)
chmod 755 /usr/local/bin/po.sh
Now, whenever you want to send yourself a push notification, you can just use
po.sh "Hello World"or
po.sh "This is a thing you might want to know"
Once you have
po.sh set up, you can use it for pretty much anything.
Transmission has a very cool feature built-in where you can call a shell script (not an AppleScript!) after a torrent finishes downloading.
I have a note that says these variables are available:
$TR_TORRENT_NAME $TR_TORRENT_ID $TR_TORRENT_HASH $TR_TORRENT_DIR $TR_TIME_LOCALTIME $TR_APP_VERSION
Unfortunately I cannot seem to remember where I got these, and googling didn’t help, which means I can’t tell you if they are up-to-date and/or if there are any others. But these are all we need right now anyway.
po.sh and Transmission together
We need to write a very short little shell script which will use
po.sh to tell us that Transmission has finished.
Here’s what I use:
#!/bin/zsh -f # # Purpose: Send me a Pushover notification when # Transmission.app finishes downloading NAME="$0:t" /usr/local/bin/po.sh "$NAME: $TR_TORRENT_NAME finished \ at $TR_TIME_LOCALTIME. Find it in $TR_TORRENT_DIR" exit 0
That’s really all we need. Paste that into a plain-text document and save it as something like
/usr/local/bin/transmission.sh and make it executable:
chmod 755 /usr/local/bin/transmission.sh
The last step is telling Transmission.app to use the script. The setting for this is just a tiny-bit buried:
- Open Transmission’s preferences
- Click the “Transfers” tab
- Click “Management”
- Check the box next to “Call Script” (at the very bottom of the window)
- Select the file
It should look like this when you’re done:
As I said, it’s much easier than it seems all written out like this. I tend to be wordy when explaining things because I’d rather err on the side of being overly clear than unclear (and it’s still possible that some or all of this isn’t clear).
If you have questions, let me know.