Stopping apple script on restart
My script repeats a bash file every thirty minutes, but I also have my iMac scheduled to restart everyday.
The restart isn't able to kill the script so it's stuck.
How can I alter the script to allow it to be killed for restart? I tried adding the suggested on quit but Control-Q doesn't even work.
#!/bin/bash
repeat
do shell script "bash /Users/robby/.homebridge/hbrestart.sh"
delay 1800
end repeat
on quit
continue quit
end quit
iMac 21.5″, macOS 10.13