macos support
This commit is contained in:
17
MediaControl.scpt
Normal file
17
MediaControl.scpt
Normal file
@@ -0,0 +1,17 @@
|
||||
on run argv
|
||||
set var to item 1 of argv
|
||||
|
||||
if var is "playpause" then
|
||||
using terms from application "Spotify"
|
||||
tell application "Spotify" to playpause
|
||||
end using terms from
|
||||
else if var is "next" then
|
||||
using terms from application "Spotify"
|
||||
tell application "Spotify" to next track
|
||||
end using terms from
|
||||
else if var is "previous" then
|
||||
using terms from application "Spotify"
|
||||
tell application "Spotify" to previous track
|
||||
end using terms from
|
||||
end if
|
||||
end run
|
||||
Reference in New Issue
Block a user