Back to Mac Usenet

From: Tetsuo <maarten.mortier@pandora
To: All
Subject: Tcl fserv script for MacBitchX
Date:Mon, June 24, 2002 09:08 PM


Hi, I have 2 questions.

1. I want to make an fserv script for MacBitchX, the macOS port of the unix
irc client. Now, this shouldn't be that hard, if only I knew how to
communicate with the file structure of my macintosh. Unix-type commands like
ls seem, well, are disabled for the MacBitchX port, so using a .bx script
will not be possible?
Another choice could be AppleScript, but I don't know how to trigger an
AppleScript from an irc script, and thus how to use its output.
So, I guess my choice would be a Tcl script. Is it possible to examine the
file structure (not exactly actual I/O, but just getting a database of the
files on my system) with such a tcl script for MacBitchX? I'm asking this,
since the interpreter is MacBitchX, and not tcshl (or whatever it's called),
so I'm not sure whether that allows it.

2. If such a thing is possible, how can I communicate with MacBitchX in that
tcl script? If I use "put" routines to print and such, it doesn't seem to
know where to print it, when interpreted by MacBitchX.

I'm obviously not experienced with tcl scripting and interpreting, but I
only need it now for my fserv script. If anyone has a clue on how to get the
file-structure of my mac with tcl, using BitchX as interpreter, and how to
get tcl communicate with MacBitchX commands (although I'm sure that last
part is better documented and I will be able to find out by myself one day),
I'd be very greatful.

Any clues are welcome, from other fields like the regular BitchX client
perhaps,

Thx in advance,

--
Tetsuo


26


Running TeleFinder Server v5.7.
© Copyright Spider Island Software