Re: When a string is not a string for Palm Desktop
Re: When a string is not a string for Palm Desktop
- Subject: Re: When a string is not a string for Palm Desktop
- From: Chris Page <email@hidden>
- Date: Fri, 2 May 2003 02:41:38 -0700
On Thursday, May 1, 2003, at 21:22 US/Pacific, Richard Morton wrote:
The variable newCCLPathStr should be a plain old string, though it
seems to contain one of these new string classes that look like
Unicode and resist all normal attempts at coercion to plain text.
It's either a 'string' or 'international text'. Palm Desktop 4.1
returns international text if the current application script code is
not MacRoman, to preserve the correct interpretation of the characters.
Otherwise, it returns a plain string, where you are to assume it's
MacRoman (which seems to be what most people do by default). In fact, I
was going to just return international text all the time, except that
people complain about it, as you did.
What language is Palm Desktop displaying in the UI?
PD 4.1 baulks at setting one of its text fields to this, though older
versions dealt with it OK. The script returns the error "Can't make
<<script>> into a string"
Unfortunately, it looks like you found a bug here. When you set the
title of a memo Palm Desktop tries to coerce the value to a Pascal
string ('pstr'), which fails. Coercing to text ('TEXT') seems to work,
though. So Palm Desktop may just not be handling international text
properly for fields that are limited to 255 characters.
Can you set the memo contents to this text value?
--
Chris Page - Software Wrangler - Palm, Inc.
The most likely way for the world to be destroyed, most experts agree,
is by accident. That's where we come in; we're computer professionals.
We cause accidents. -- Nathaniel Borenstein
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.