|
From: Daniel A. S. <da...@ca...> - 2009-08-17 14:31:02
|
Hi Kevin, On Mon, Aug 17, 2009 at 16:20, Kevin Walzer<kw...@co...> wrote: > I had one more question. When trying to run a very basic example of "do > script" against an AppleScript-enabled version of Wish > (Tk-Carbon-based) like so: > > tell app "Wish" > do script "puts foo" > end tell > > I get this cryptic error: > > Wish got an error: AEDoScriptHandler: invalid script type 'txtu', must > be 'alis' or 'TEXT' don't have time to look into the various other AS issues/questions ATM unfortunately but I do know how to fix this one, it is caused by AppleScript 2.0 switching to unicode text (in Leopard IIRC), and because tkMacOSXHLEvents.c is checking specifically if 'TEXT' (i.e. text in the carbon system encoding, usually mac roman) was passed in, the automatic coercion handlers between unicode text 'txtu' and system encoding do not kick in. This is easy to fix, will try to get this committed soon. as far as a replacement for 'aete' is concerned, we will definitely need a .sdef for TkAqua Cocoa to replicate the old functionality, contributions by you or Philip much appreciated... Cheers, Daniel |