Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on buildNowPlaying()
- tell application "System Events"
- set CurrentTrack to the value of static text of window of process "Enqueue" as list
- end tell
- set TrackArtist to item 1 of CurrentTrack
- return TrackArtist as string
- end buildNowPlaying
- using terms from application "Colloquy"
- on process user command cmd with args for chatRoom
- if cmd is equal to "npb" then
- set nowPlaying to buildNowPlaying() & " " & args
- tell chatRoom to send message nowPlaying to chatRoom with action tense
- return nothing
- end if
- end process user command
- end using terms from
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement