Advertisement
Guest User

Bettertouchtool Spotify Touch Bar

a guest
Oct 9th, 2018
7,122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if application "Spotify" is running then
  2.     tell application "Spotify"
  3.         if player state is playing then
  4.             set naam to get name of current track
  5.             set naam to text 1 thru ((offset of "-" in naam) - 1) of naam
  6.             return (get artist of current track) & " - " & (naam)
  7.         else
  8.             return ""
  9.         end if
  10.     end tell
  11. end if
  12. return ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement