Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- osascript -e 'tell application "System Events"
- set myList to (name of every process)
- end tell
- if myList contains "Decibel" then
- tell application "Decibel"
- if playing is true then
- set trackname to title of nowPlaying
- set artistname to artist of nowPlaying
- set output to "" & trackname & " | " & artistname & ""
- end if
- end tell
- else
- set output to ""
- end if'
Add Comment
Please, Sign In to add comment