|
From: Jon G. <jg...@hi...> - 2006-05-01 13:02:52
|
On May 1, 2006, at 7:08 AM, Svenn Are Bjerkem wrote:
> Wish deliver an error message:
> AEDoScriptHandler: invalid script type 'utxt', must be 'alis' or
> 'TEXT'
>
> Maybe there is some conversion from one type of text to another
> type of text nescessary, but I have no idea where to look for more
> help. If I try to drop the Wish.app icon on the Script Editor.app
> icon in order to get the dictionary, I get the message that Wish
> does not support AppleScript scripting. Is that maybe my problem?
Wish only supports the "do script" syntax by default, allowing you to
pass in Tcl code. It is not truly AppleScriptable, though.
What it's telling you is that it either wants a reference to a file,
or it wants the script text encoded as 'TEXT' (traditional, Mac 8-bit
system encoding; internally, Tcl might be further insisting on
MacRoman; I don't remember). TextWrangler is providing you with
'utxt'; 16 bit unicode. You might try:
set theFile to text of text window 1 as text
|