Skip to content

Commit 9ce5808

Browse files
author
Aadharsh Pannirselvam
committed
changed quit behavior to force quit
1 parent 3738ac2 commit 9ce5808

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
1.09 KB
Binary file not shown.

spotty/spotty.applescript

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ on poll()
2424
end poll
2525

2626
on relaunch() -- quit, then relaunch and play
27+
tell application "System Events" to do shell script "kill -9 " & unix id of process "Spotify"
28+
repeat until application "Spotify" is not running -- waits until spotify's properly quit
29+
end repeat
2730
tell application "Spotify"
28-
quit
29-
repeat until it is not running -- waits until spotify's properly quit
30-
end repeat
3131
run -- supposedly better than launch
3232
play
3333
end tell

0 commit comments

Comments
 (0)