Re: changing international text to unicode text
Re: changing international text to unicode text
- Subject: Re: changing international text to unicode text
- From: Kevin Meaney <email@hidden>
- Date: Mon, 20 Dec 2004 21:32:41 +0000
Emmanuel,
Thanks for that info, and thanks to Chris for updating you on that. I new about the encoding issue that Chris mentioned, my concern was that if you have a unicode string that contains characters that can only be represented by multiple encodings that this is going to break down.
I think I am only going to sort this with some experimentation. I don't want to break scripts that are being used by customers if they decide to upgrade.
consider the situation
"set theName to the name of thisDocument"
If I change the appleevent descriptor for the name property of thisDocument from international text to unicode text what happens.
I see three possible scenarios:
1. Scripts will have to be rewritten because the appleevent descriptor now indicates that the text is unicode rather than string? For example what happens if you compare unicode to a string, does the string get upgraded to unicode and then the comparison is performed or does the string need to be converted in the script to unicode before doing the comparison:
<x-tad-smaller> set u to s as Unicode text </x-tad-smaller>
2. Will the scripts work just by having to recompile them?
3. Will the scripts just work without having to be recompiled or anything?
Kevin
On 20 Dec 2004, at 07:54, Emmanuel wrote:
At 9:42 PM -0800 19/12/04, Christopher Nebel wrote:
On Dec 19, 2004, at 12:29 PM, Joseph Weaks wrote:
http://www.satimage.fr/software/en/unicode_and_applescript.html
It's also slightly wrong in places. Specifically:
Thanks much for taking the time to read our page, Chris, and thanks for the corrections and for the information.
The page above was updated to take your input into account.
in some circumstances where an application is really expecting a regular string, you may get an AppleScript error if you pass such a quantity.
Not a correction, but just so you know, any application that specifically requires a descriptor of typeText has a bug.
Not a correction, but so you know, Finder's file type requires a descriptor of typeText, still in Panther.
Maybe it's a bug but a non-fixable one?
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden