APPLESCRIPTING IN IRCLE
October 22, 1996 - By Shawn D. Hogan

One of the cool new features of the new version of Ircle (2.6a22 and higher) is the ability to call applescripts into play from the command line. A good example of this if a script I wrote that in an IRC channel, it will request a list of files from all the file bots.

tell application "ircle2.6b2"
set a to argument
if (the number of items in a) > 0 then
set ch to item 1 of a as text
if exists channel ch then
set n to numberofusers of channel ch
set Counter to 0
set u to ""
set c to 1
repeat n times
if voice of user c of channel ch = true then
do "/ctcp " & nickname of user c of channel ch & " xdcc list"
end if
set c to c + 1
end repeat
else
display dialog "No such channel: " & ch
end if
else
display dialog the "Usage: /flist "
end if
end tell



Return to Digital Point Solutions' Home Page