Ticket #599 (new defect)

Opened 3 years ago

Last modified 2 years ago

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

Reported by: Niteshade Assigned to: timothy
Priority: normal Component: AppleScript Support
Version: Latest Nightly 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.

2. 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

04/14/06 23:59:01 changed by niteshade

  • keywords changed from applescript description of front panel of front window bug to applescript front panel bug.
  • 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.

2. 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

06/08/06 02:03:52 changed by brennan@young.net

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'?