Skip to content

Instantly share code, notes, and snippets.

@jacobsalmela
jacobsalmela / siriControlsSpotify.scpt
Created January 30, 2015 15:33
April fool's Spotify script
repeat
tell application "System Events" to delay 3.0
tell application "System Events" to set currentApp to name of first process where frontmost is true
if currentApp is "Spotify" then
try
-- Create a random number to do one of three things
set randomNum to random number from 1 to 3
if randomNum is 1 then
tell application "Spotify" to pause