Created
July 7, 2017 14:19
-
-
Save awaxa/e7c9bc0349b5e79b880b776f583028e3 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
url="$(osascript -e 'tell application "Spotify" to spotify url of current track')" | |
remove='spotify:track:' | |
url="${url#$remove}" | |
url="https://open.spotify.com/track/$url" | |
echo -n "$url" | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment