Opened 14 years ago

Last modified 13 years ago

#66 new Defect

AS Odd results from 'transcript' class

Reported by: brennan@… Owned by: timothy
Component: Colloquy (Mac) Version: 2.1 (Mac)
Severity: Normal Keywords: AS transcript
Cc:

Description

I am getting some odd behavior when getting messages from the transcript:

This works

tell application "Colloquy"

count messages of transcript of (active panel of window 1)

end tell

This doesn't work

tell application "Colloquy"

tell (active panel of window 1)

count messages of transcript

end tell

end tell

It causes the error "Could not identify the element type of the Count command."

My guess is that may be related to the fact that transcript is a property of panel, rather than an element. Even though it is a property It should still work to do

tell application "Colloquy"

tell (active panel of window 1)

tell transcript

count messages

end tell

end tell

end tell

Certainly 'transcript' just returns the constant 'transcript' rather than a transcript object.

Also I am getting odd errors when I do

messages of transcript of (active panel of window 1) whose sender is "Brennan"

It's telling me things like "The message id MKUW4ZX6S3 doesn't have the "sender" property."
OK this is probably a different bug.

Change History (1)

comment:1 Changed 13 years ago by rinoa

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