Ticket #86 (new defect)

Opened 3 years ago

Last modified 1 year ago

AS connections whose status is ... fails

Reported by: brennan@young.net Assigned to: timothy
Priority: high Component: AppleScript Support
Version: Latest 2.1 Severity: normal
Keywords: connected applescript Cc:

Description

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

03/21/05 15:32:51 changed by brennan@young.net

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.

05/05/05 16:31:08 changed by brennan@young.net

  • priority changed from normal to high.

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

02/22/06 09:39:50 changed by niteshade

  • keywords set to connected applescript.

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 :)

Niteshade

02/22/06 12:33:31 changed by brennan@young.net

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.

08/20/06 20:58:54 changed by rinoa

  • version changed from 2.0 (2D9) to Latest 2.1.