Remove rdio support, combine spotify and itunes
* remove rdio.scpt for detecting currently playing rdio trip. RIP * combine iTunes and Spotify scripts together into a single, tunes.scpt
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
if application "iTunes" is running then
|
||||
tell application "iTunes"
|
||||
if exists current track then
|
||||
set theName to the name of the current track
|
||||
set theArtist to the artist of the current track
|
||||
try
|
||||
return "♫ " & theName & " - " & theArtist
|
||||
on error err
|
||||
end try
|
||||
end if
|
||||
end tell
|
||||
end if
|
||||
@@ -1,10 +0,0 @@
|
||||
if application "Rdio" is running then
|
||||
tell application "Rdio"
|
||||
set theName to name of the current track
|
||||
set theArtist to artist of the current track
|
||||
try
|
||||
return "♫ " & theName & " - " & theArtist
|
||||
on error err
|
||||
end try
|
||||
end tell
|
||||
end if
|
||||
@@ -1,12 +0,0 @@
|
||||
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
|
||||
24
applescripts/tunes.scpt
Executable file
24
applescripts/tunes.scpt
Executable file
@@ -0,0 +1,24 @@
|
||||
(* Get the current song from iTunes or Spotify *)
|
||||
if application "iTunes" is running then
|
||||
tell application "iTunes"
|
||||
if exists current track then
|
||||
set theName to the name of the current track
|
||||
set theArtist to the artist of the current track
|
||||
try
|
||||
return "♫ " & theName & " - " & theArtist
|
||||
on error err
|
||||
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