Guest User

Untitled

a guest
Dec 9th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. osascript -e 'tell application "System Events"
  2.     set myList to (name of every process)
  3. end tell
  4.  
  5. if myList contains "Decibel" then
  6. tell application "Decibel"
  7.     if playing is true then
  8.         set trackname to title of nowPlaying
  9.         set artistname to artist of nowPlaying
  10.         set output to "" & trackname & " | " & artistname & ""
  11.     end if
  12. end tell
  13.  
  14. else
  15.     set output to ""
  16.  
  17. end if'
Add Comment
Please, Sign In to add comment