root/trunk/plagger/bin/colloquy_tell.scpt

Revision 1919 (checked in by franck, 2 years ago)
Notify
Colloquy - Notify to IRC using the Colloquy IRC Client with applescript
Line 
1 on run argv
2        
3         tell application "System Events"
4                 if not (exists process "Colloquy") then
5                         tell application "Colloquy"
6                                 launch
7                                 set visible of front window to true
8                         end tell
9                 end if
10         end tell
11        
12         tell application "Colloquy"
13                 send message (item 1 of argv) action tense yes to (get chat room (item 3 of argv) of first connection)
14                 send message (item 2 of argv) action tense yes to (get chat room (item 3 of argv) of first connection)
15                 return
16         end tell
17        
18 end run
Note: See TracBrowser for help on using the browser.