Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if application "Spotify" is running then
- tell application "Spotify"
- if player state is playing then
- set naam to get name of current track
- set naam to text 1 thru ((offset of "-" in naam) - 1) of naam
- return (get artist of current track) & " - " & (naam)
- else
- return ""
- end if
- end tell
- end if
- return ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement