Last active
May 8, 2023 12:36
-
-
Save XSAM/f892974da3bde281cf7f58f49539ba6a to your computer and use it in GitHub Desktop.
Control Netease Music via AppleScript
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
tell application "System Events" to tell process "NeteaseMusic" | |
tell menu bar 1 | |
tell menu bar item "Controls" | |
tell menu 1 | |
if menu item "Play" exists then | |
click menu item "Play" | |
display notification "Play Music" with title "NeteaseMusic" | |
else | |
click menu item "Pause" | |
display notification "Pause Music" with title "NeteaseMusic" | |
end if | |
end tell | |
end tell | |
end tell | |
end tell |
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
display notification "df" with title "NeteaseMusic" sound name "default" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment