Created
April 26, 2012 13:03
-
-
Save iamnoah/2499406 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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