Correction about Applescript-jdr.6.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Correction about Applescript-jdr.6.mcz

Javier Diaz-Reinoso
I write:

> - if AEDesc>>createFromText: receive a WideString, create a  
> typeUnicodeText ('ut16') instead of a typeText ('TEXT'), see the  
> sample dialogWithUTF16.
>

the sample dialogWithUTF16 is NOT using the typeUnicodeText (is a  
sample of how to display Unicode text), this code is:

> ba := #(0 16r22 0 16r28 16r5B 16r5D 16r7D 16rEC 0 16r29 0 16r22)  
> asByteArray.
> bs := ba asString.
> ws := bs asString convertFromWithConverter: UTF16TextConverter new.
> Applescript doIt: 'display dialog (', ws, ' as Unicode text)'
>
but this don't work in 10.4.7, I think is an Apple's bug.

An any case I think the actual plugin creates a typeUnicodeText  
without any modification.