17 lines
545 B
AppleScript
17 lines
545 B
AppleScript
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 |