• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: When a string is not a string for Palm Desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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, 02 May 2003 14:58:55 -0700

On Friday, May 2, 2003, at 04:07 US/Pacific, Richard Morton wrote:

I wasn't actually meaning it as a complaint about the new PD...

Oh, no, I didn't mean that either. I just meant that people complain about not being able to turn international text into plain text.

There may be some confusion here too - I'm not getting the string from PD, I'm trying to feed it to PD.

Yes, I missed that detail. I thought you were getting the string from PD, then getting an error trying to set it back in PD, which is clearly a problem. Well, it's a problem anyway, regardless of where the text comes from.

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.

Looks like we might be talking about two different things - I'm trying to set the field text of a custom field of an address.

The problem is the same. My comments about Pascal strings vs. text is an implementation detail that doesn't mean anything, really. What I should have said is:

It looks like you simply won't be able to set any text properties in PD to international text (and perhaps other text formats like styled text and Unicode text, I'd bet) for properties that are normally limited to 255 characters or less, because in all those cases I failed to write the correct code to get the text from the Apple event. Unfortunately, I think that's every text property except for memo contents (which can be up to 32K), where I wrote the code correctly (AFAICT).

Thanks for the reply and thanks again for all the work on PD4.1 - as far as I'm concerned the scripting has gone from ugly to excellent. If this & the 'contents of contents' issue are your only 2 bugs, I'd say you're well in front of the pack! I hear the Cocoa team could use a hand if you're looking for work... ;-)

Thanks for the encouraging words. And I'm glad to hear the scripting is improvement for you. (That is, after all, exactly why I did the work. :)

--
Chris Page - Software Wrangler - Palm, Inc.
_______________________________________________
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.

References: 
 >Re: When a string is not a string for Palm Desktop (From: Richard Morton <email@hidden>)

  • Prev by Date: Re: Rules for leading colon
  • Next by Date: Strange numbers to AS
  • Previous by thread: Re: When a string is not a string for Palm Desktop
  • Next by thread: Re: When a string is not a string for Palm Desktop
  • Index(es):
    • Date
    • Thread