Last active
January 18, 2022 05:18
-
-
Save irmowan/8ec09ddc3ebde11bea7d321c3ee145fc to your computer and use it in GitHub Desktop.
AppleScript to control Netease Music
This file contains hidden or 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
tell application "System Events" to tell process "NeteaseMusic" | |
click menu item "下一个" of menu 1 of menu bar item "控制" of menu bar 1 | |
end tell |
This file contains hidden or 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
set old to (path to frontmost application as text) | |
tell application "System Events" | |
tell application "NeteaseMusic" to activate | |
key code 124 using command down | |
end tell | |
delay 1 | |
activate application old |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment