Advertisement
Guest User

Untitled

a guest
Jul 5th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on textualcmd()
  2.     tell application "iTunes"
  3.         try
  4.             if not (exists current track) then return
  5.             set this_artist to (get artist of current track)
  6.             set this_track to (get name of current track)
  7.             set this_album to (get album of current track)
  8.         end try
  9.     end tell
  10.    
  11.     set this_desc to this_track & " from " & this_album & " by " & this_artist
  12.    
  13.     return "/me is listening to " & this_desc
  14. end textualcmd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement