Ticket #825 (assigned defect)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: akchizar@gmail.com Assigned to: timothy (accepted)
Priority: normal Component: AppleScript Support
Version: Latest 2.1 Severity: normal
Keywords: AS AS: Cc: matthew.hutton.comp@googlemail.com

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"

Attachments

iTunes Bot.scpt (4.0 kB) - added by Eraserhead on 11/12/06 04:51:17.
iTunesBot Plugin

Change History

11/12/06 04:50:42 changed 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.

11/12/06 04:51:17 changed by Eraserhead

  • attachment iTunes Bot.scpt added.

iTunesBot Plugin

11/12/06 04:51:44 changed by Eraserhead

  • keywords set to AS AS:.

11/12/06 04:52:08 changed by Eraserhead

  • cc set to matthew.hutton.comp@googlemail.com.

11/25/06 15:10:12 changed 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).