Skip to content

Instantly share code, notes, and snippets.

@jkmaxwell
Created February 2, 2020 00:55
Show Gist options
  • Save jkmaxwell/ae3aa8320aa2a2065e2a9fd644d7a07a to your computer and use it in GitHub Desktop.
Save jkmaxwell/ae3aa8320aa2a2065e2a9fd644d7a07a to your computer and use it in GitHub Desktop.
itmss to Apple Music
on open location theURL
set endOfProtocol to offset of "://" in theURL
set theURLWithoutProtocol to characters endOfProtocol thru -1 of theURL as string
set theAppleMusicURL to "itmss" & theURLWithoutProtocol
tell application "Music" to open location theAppleMusicURL
tell application "Music"
activate
end tell
end open location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment