Ticket #338 (new Enhancement)
AS - A method to send a typed command from Applescript
| Reported by: | niteshade | Owned by: | timothy |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | AppleScript Support | Version: | 2.1 (Mac) |
| Severity: | Normal | Keywords: | Interface, Scripts, Plugins |
| Cc: |
Description
It might be handy to be able to send a line of text from applescript to colloquy just as though it had been typed by the user. There doesn't seem to be a way to do this. This allows applescript to send commands to Colloquy - e.g. /dcc etc. just as though they had been typed. This might help people do things that either colloquy doesn't (yet) fully support in Applescript per se, or has no interest in supporting, or for reasons specific to the scripter is the desired method of control.
Is it worth adding a new command "send typed" ? Or would it be better to add a parameter to the "send message" command
[as typed boolean] : Send as though it was typed by the user (true) or sent direct (false) Default is false.
or instead
[as command string] : where the string is the command that is sent "dcc", "ctcp", "(server specific command)" etc and the text that is send is then sent to the application/server routines that normally parse that command. Optional.
The first of these two options is the better IMHO because it lets anything that the script wants "typed" to be "typed" for whatever reasons they might want to "type" it :)
I'm guessing that this wouldn't be too hard a thing to add, and might be an ineligant way of adding power with least effort - at least while better ways are being developed. I hope you can find a way to fit it into the general structure of your dictionary grammar and syntax.
thanks
