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