Created
April 2, 2019 00:01
-
-
Save ggada/c17022fa39ccb567f1601721c221bacf to your computer and use it in GitHub Desktop.
iTunes replacement for YouTube Music
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
#!/usr/bin/env osascript | |
tell application "System Events" | |
tell process "Google Chrome" | |
set frontmost to true | |
perform action "AXRaise" of window 1 | |
keystroke "0" using {shift down, command down} | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install Streamkeys
Goto chrome://extensions/shortcuts
Configure Toggle play/pause in the Streamkeys shortcuts as Command + Shift + 0 (zero)
Go to System Preferences, Security and Privacy and allow iTunes to control your computer (needed for AxRaise).
Now Play/Pause will Play/Pause YouTube Music.