Opened 14 years ago

Last modified 14 years ago

#599 new Defect

AS: bug in finding the front panel vs the first panel

Reported by: Niteshade Owned by: timothy
Component: Colloquy (Mac) Version: 2.2 (Mac)
Severity: Normal Keywords: applescript front panel bug
Cc:

Description

Hi

I'm trying to determine the type of front window (query/channel/etc). There seems to be a bug in this script
(using Colloquy nightly - Version 2.0.1 (2D32) )

tell application "Colloquy" to return description of front panel of front window


1. 'THE BUG: this script seems to always return the results from the FIRST panel created in the window, instead of the front panel as I expect/want.

  1. Also, the result is returned as an English string (not a client applescript reserved word as per other IRC clients). Will this string remain the same in other language versions of Colloquy. Will the Syntax remain the same (this is where reserved words are probably more reliable)?

Change History (2)

comment:1 Changed 14 years ago by niteshade

  • Keywords description of of window removed
  • Summary changed from AS: bug in finding the description of front panel of front window to AS: bug in finding the front panel vs the first panel
  1. Also, the result is returned as an English string (not a client applescript reserved word as per other IRC clients). Will this string remain the same in other language versions of Colloquy. Will the Syntax remain the same (this is where reserved words are probably more reliable)?

Answer (thanks xenon): Use -

tell application "Colloquy" to return class of front panel of front window

However, this suffers from the same bug in "front panel" where the first panel in the list of tabs is used, instead of the front panel. I.e. BUG (1) applies to this too

comment:2 Changed 14 years ago by brennan@…

Yes, it should definitely be an enumeration, not a string.

I am not sure that 'class' is a good name for this property, as it is used extensively elsewhere in AppleScript?.

What about 'panel type'?

Note: See TracTickets for help on using tickets.