• 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
When a string is not a string for Palm Desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

When a string is not a string for Palm Desktop


  • Subject: When a string is not a string for Palm Desktop
  • From: Richard Morton <email@hidden>
  • Date: Fri, 2 May 2003 14:22:33 +1000

Greetings,

I'm trying to set a text field of an address in Palm Desktop 4.1. This has worked fine in all previous versions, though I'm not convinced it's strictly a PD problem. The line in question is:

tell application "Palm Desktop" to set field text of custom eleven of address 0 to newCCLPathStr

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.

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"

I can work around this using Arthur Knapp's styled text to string coercion and I guess PD could be more flexible in what it accepts, but I'm interested in finding out whether this is seen as a bug in AS: I find it frustrating that I can't get AS to give me a plain old string when I ask for one, but maybe I'm missing something there. What strikes me as more obviously buggy though, is that the class that AS returns is misleading:

class of "any string"
--> string

class of newCCLPathStr -- styled text
--> string

This makes debugging very difficult.

Cheers,

Waste D Thyme
_______________________________________________
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.

  • Follow-Ups:
    • Re: When a string is not a string for Palm Desktop
      • From: Chris Page <email@hidden>
    • Re: When a string is not a string for Palm Desktop
      • From: Shane Stanley <email@hidden>
  • Prev by Date: PD 4.1 comments [was: Palm Desktop 4.1 (creating a memo)]
  • Next by Date: Re: Scripting an AppleWorks database
  • Previous by thread: PD 4.1 comments [was: Palm Desktop 4.1 (creating a memo)]
  • Next by thread: Re: When a string is not a string for Palm Desktop
  • Index(es):
    • Date
    • Thread