Skip to content

Instantly share code, notes, and snippets.

View Hum4n01d's full-sized avatar
👋
hey :)

Kent Hum4n01d

👋
hey :)
View GitHub Profile
@Hum4n01d
Hum4n01d / AddCurrentTrackToLibrary.scpt
Created January 23, 2021 07:02
Add the currently playing track to your Apple Music library
tell application "System Events"
tell process "Music"
perform action "AXRaise" of window 1
try
tell menu bar 1
tell menu bar item "Window"
tell menu "Window"
click menu item "Switch to MiniPlayer"
end tell
end tell