Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on buildNowPlaying()
  2.     tell application "System Events"
  3.         set CurrentTrack to the value of static text of window of process "Enqueue" as list
  4.     end tell
  5.     set TrackArtist to item 1 of CurrentTrack
  6.     return TrackArtist as string
  7. end buildNowPlaying
  8.  
  9. using terms from application "Colloquy"
  10.     on process user command cmd with args for chatRoom
  11.         if cmd is equal to "npb" then
  12.             set nowPlaying to buildNowPlaying() & " " & args
  13.             tell chatRoom to send message nowPlaying to chatRoom with action tense
  14.             return nothing
  15.         end if
  16.     end process user command
  17. end using terms from
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement