Ticket #66 (new defect)

Opened 4 years ago

Last modified 2 years ago

AS Odd results from 'transcript' class

Reported by: brennan@young.net Assigned to: timothy
Priority: normal Component: AppleScript Support
Version: Latest 2.1 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

08/20/06 21:02:13 changed by rinoa

  • version changed from 2.0 (2D9) to Latest 2.1.
  • component changed from Colloquy (GUI) to AppleScript Support.