First I simply picked the python script in Transmission to be run when downloads complete. I didn't think it would work. I was correct.
So then I made a simple shell script to launch the python script:
complete.sh
Code: Select all
#!/bin/sh
python /Users/My\ Name/Documents/scripts/transmission_complete.py
So then I try to determine where the problem is. Is the shell script running, or is the python script not launching? I know the py script works when I run it directly in Terminal. So maybe the shell script doesn't work.
If i run the shell script directly in Terminal (ie cd to directory, run ./complete.sh) it works perfectly.
I modified it to this:
Code: Select all
#!/bin/sh
osascript -e 'display notification "It Worked!" with title "Success"'
python /Users/My\ Name/Documents/scripts/transmission_complete.py
It seems like everything works until I want Transmission to handle running the script.
What's going on here?