Re: Scripting Palm Desktop --- syntax to modify Custom fields
Re: Scripting Palm Desktop --- syntax to modify Custom fields
- Subject: Re: Scripting Palm Desktop --- syntax to modify Custom fields
- From: John W Baxter <email@hidden>
- Date: Sat, 6 Oct 2001 15:00:55 -0700
At 9:45 +0000 10/6/2001, Jason W. Bruce wrote:
>
You can't use the word "text" to refer to the contents of a custom field in
>
the Palm Desktop, because "text" is an AppleScript keyword. Instead, you
>
have to use raw syntax to set the contents of a custom field. Be careful
>
not to recompile after you type in the raw syntax, because AppleScript will
>
translate the raw syntax to the Palm Desktop dictionary term "text" in
>
Script Editor, and will subsequently confuse it with the AppleScript keyword
>
"text."
It's been ages (OK, 8+ years) since I had to resort to this, but the likely
solution is to hack the aete in Palm Desktop to associate some other
terminology with the event code that they currently associate "text" with.
The context in which I did this was the Microsoft Excel version which was
extant when AppleScript was released (yes, Excel was scriptable before
AppleScript came out, by several months). In Excel's case, "text" was
supposed to refer to the as-formatted contents of a cell. I stuffed a
different term into the 'aete'. [There were obvious copyright issues plus
I picked a really silly multi-word term, so I never released the result,
but it worked for me.] I had the advantage of knowing the retrieval of the
as-formatted text worked, since it worked fine in Frontier scripts.
For exchange of scripts, it would be useful to agree on what the
terminology should be.
--John
--
John Baxter email@hidden Port Ludlow, WA, USA