Skip to content

Instantly share code, notes, and snippets.

@iamnoah
Created April 26, 2012 13:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iamnoah/2499406 to your computer and use it in GitHub Desktop.
Save iamnoah/2499406 to your computer and use it in GitHub Desktop.
on run
tell application "Google Chrome"
set allWins to every window
set allTabs to {}
repeat with currWin in allWins
set allTabs to allTabs & every tab of currWin
end repeat
repeat with currTab in allTabs
try
if (title of currTab as string) contains "Google Play" then set musicTab to currTab
end try
end repeat
tell musicTab to execute javascript "SJBpost('playPause');"
end tell
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment