Characters of the Event error

G’day

I’ve got a bit of a problem with these lines in a Snow Leopard Applescript Studio script. The second line crashes with a -10000 error. Works fine in Leopard. Is it a bug?

Using XCode 3.2.1

Any suggestions on what to do, please?

Regards

Santa



on keyboard up theObject event theEvent
	set theKeyPressed to (characters of theEvent)

Browser: Safari 531.9
Operating System: Mac OS X (10.6)

I’ve lodged a bug, even this crashes…never gets to 2



on keyboard up theObject event theEvent
	say 1
	set temp to (properties of theEvent)
	say 2

Regards

Santa

Hey Santa,

I’m having the exact same problem.

Did you figure something out?

Jase

G’day Tortle

No, sorry

Regards

Santa

Hi!

Try this:

http://img72.imageshack.us/img72/6159/inspector.jpg

Set (in the interface builder) the event receiver object’s scope to “object”. (Default “Global”)
This worked for me in tableview keyboard control:


on keyboard up mytable event theEvent
	
	set mykeycode to key code of theEvent


Regards,
Laszlo