May 2 2003, 01:01 PM
Post
#1
|
|
![]() Administrator ![]() ![]() ![]() Group: Admin Posts: 168 Joined: 2-May 03 From: New Hampshire Member No.: 1 |
A common user feature request has been to adding the ability to program a trigger. You know, with if-then statements and for loops, etc.
If you had to choose a language, what would it be? Why? |
|
|
|
![]() |
| Guest_Brennan Young_* |
Apr 4 2006, 12:36 PM
Post
#2
|
|
Guests |
PERL is an obvious choice, because of it's special strengths with text processing, but it's ugly.
Python and Applescript are both good choices too, although Applescript has quite poor string handling. HOWEVER, Applescript has a *very* neat thing called 'do shell script' which means that if you support Applescript, we can use whatever language we like - including C, just pass a string to whatever shell script, written in whatever language. Many Applescript folks just call grep, sed or PERL with 'do shell script' if they want to do any serious string crunching. Works very nicely. A basic scripting implemetation would need at least TWO input parameters: 1 String - the server output (trigger), or user input (macro) 2 A reference to the world where this is happening (name?, id?) The script should return true or false, indicating whether it handled the event or not. It should also be possible to send messages to the server, and/or write something into the input line ready to be sent. That's the bare minimum, but we can already do a lot with it. I would suggest looking at the scripting implementations of various irc clients, such as Snak, ircle, Xchat and so on. (Snak and Xchat both support more than one scripting language). Apart from tinyfugue, scripting MUDs on Mac is almost impossible. I'll buy Savitar in a trice if I could have this feature. |
|
|
|
jay Scripting Support May 2 2003, 01:01 PM
Shan Perl! The language was built for processing te... May 10 2003, 01:38 AM
Alorael I'd vote for C/C++, but only because that... May 10 2003, 04:22 AM
Guest Dangit, I JUST got done e-mailing Jay with this id... Aug 5 2003, 05:58 PM
jay I was reading macslash.com today and there is a di... Aug 9 2003, 01:57 AM
cybern8r ...Never heard of it. But any language for Savitar... Aug 9 2003, 03:40 AM
Shan I vote for Perl or Lua. Dec 31 2003, 04:11 PM
Vesence I dont know much about programming but I think I k... Feb 11 2004, 11:15 PM
water I think most will vote for any language they alrea... Aug 18 2006, 08:51 PM
Makyo2 I don't know it, but I've seen lots of pos... Aug 18 2006, 10:20 PM
Leshke Since it's been over three years since this to... Oct 22 2006, 09:05 PM
jay Its still something I want to add.
Do you have a ... Oct 23 2006, 02:28 PM
Leshke I wouldn't mind PERL myself. Nov 1 2006, 06:13 PM
Ankiseth Personally I'd vote for javascript, like menti... Dec 21 2006, 01:29 AM
jay Good feedback. I've been pondering both JavaSc... Dec 22 2006, 01:27 PM
nevlik I hate to necrotize a thread, but I would vote for... Nov 17 2007, 06:39 PM
Myra dont know if it is to late to vote, but what about... Mar 28 2009, 03:27 AM![]() ![]() |
| Lo-Fi Version | Time is now: 28th October 2025 - 01:03 AM |