remove spotify song from tmux
This code breaks if Spotify isn't installed, so just removing it
This commit is contained in:
@@ -10,15 +10,4 @@ if application "iTunes" is running then
|
||||
end try
|
||||
end if
|
||||
end tell
|
||||
else if application "Spotify" is running then
|
||||
tell application "Spotify"
|
||||
set theName to name of the current track
|
||||
set theArtist to artist of the current track
|
||||
set theAlbum to album of the current track
|
||||
set theUrl to spotify url of the current track
|
||||
try
|
||||
return "♫ " & theName & " - " & theArtist
|
||||
on error err
|
||||
end try
|
||||
end tell
|
||||
end if
|
||||
|
||||
Reference in New Issue
Block a user