Opened 13 years ago

Last modified 12 years ago

#825 assigned Defect

Applescript "body of message" borked (breaks /itunes links)

Reported by: akchizar@… Owned by: timothy
Component: Colloquy (Mac) Version: 2.1 (Mac)
Severity: Normal Keywords: AS AS:
Cc: matthew.hutton.comp@…

Description

Applescript "body of message" doesn't return the body of the message as it should. Code:

using terms from application "Colloquy"
	on process incoming chat message the_msg from the_usr in the_room
		try
			-- a large amount of other stuff
			say body of the_msg
			set the_body to name of the_usr & ": " & body of the_msg
		on error err_text
			display alert "Error ahead! Dirty great error ahead!" & return & err_text
		end try
	end process incoming chat message
end using terms from

Running this gives the error message:
"Can't make «class maPA» of «class cRmA» of «class crmM» id 80298912 into type string"

Change History (4)

comment:1 Changed 12 years ago by Eraserhead

The following code refuses to set 'msg' to anything, meaning you cannot read anything in from the body.

on process incoming chat message m from user in view
:set msg to the body of m
end process incoming chat message

When testing the iTunesBot plugin from a web user it gives the error (error=The variable msg is not defined.)

I have only tested this with PC users with mIRC and web based chat users, so I am not sure whether it works with to Colloquy users.

comment:2 Changed 12 years ago by Eraserhead

  • Keywords AS AS: added

comment:3 Changed 12 years ago by Eraserhead

  • Cc matthew.hutton.comp@… added

comment:4 Changed 12 years ago by timothy

  • Status changed from new to assigned
  • Summary changed from Applescript "body of message" borked to Applescript "body of message" borked (breaks /itunes links)
Note: See TracTickets for help on using tickets.