Opened 15 years ago

Last modified 13 years ago

#86 new Defect

AS connections whose status is ... fails

Reported by: brennan@… Owned by: timothy
Component: Colloquy (Mac) Version: 2.1 (Mac)
Severity: Normal Keywords: connected applescript


This causes an error:

tell application "Colloquy" to get connections whose status is (connected)

(and mysteriously, the parentheses around 'connected' are added at compile time).

This works

tell application "Colloquy" to get status of connections

Change History (5)

comment:1 Changed 15 years ago by brennan@…

I hoped to be able to use 'status as string' but this apparently only works in script editor, not in plugins. ARRRGH.

Would really appreciate a fix on this so I can finish my auto away script.

comment:2 Changed 15 years ago by brennan@…

  • priority changed from normal to high

Just setting priority to high. This is a showstopper for me.

comment:3 Changed 14 years ago by niteshade

  • Keywords connected applescript added

Hi Brennan,

I vaguely recall hitting this problem in Colloquy previously too. I've also hit it, and similar things, in one or two other IRC clients I've tried scripting. I worked around the problem this way...

I noticed that the other keywords work - it's just "connected" that is the problem (I think) - so I used some reverse logic...

set s to get status of connection id (cc as number)
if (s is not disconnected) and (s is not connecting) and (s is not suspended) then
end if

Hope this helps :)


comment:4 Changed 14 years ago by brennan@…

Thanks for that hack niteshade. It led me to try another:

connections whose status is not in {disconnected, connecting, suspended}

... but this doesn't work either. Sigh.

Never mind at least there is a workaround.

comment:5 Changed 14 years ago by rinoa

  • Version changed from 2.0 (2D9) to Latest 2.1
Note: See TracTickets for help on using tickets.