Scripting Palm Desktop --- syntax to modify Custom fields
Scripting Palm Desktop --- syntax to modify Custom fields
- Subject: Scripting Palm Desktop --- syntax to modify Custom fields
- From: "Jason W. Bruce" <email@hidden>
- Date: Sat, 06 Oct 2001 09:45:58 +0000
>
Message: 4
>
Date: Fri, 05 Oct 2001 15:04:19 -0400
>
Subject: Re: Scripting Palm Desktop --- syntax to modify Custom fields
>
From: Mohamed Shams <email@hidden>
>
To: <email@hidden>
>
>
Hi everybody..
>
>
Changing the subject... However... Still a palm question..
>
>
How do I modify the text in a custom field..
>
>
Set text of custom 1 of address 0 to "whatever"
>
>
This doesn't work..???
>
>
>
Mohamed
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."
tell application "Palm Desktop"
set custom 2 of address 0 to {+class PCTX;:"Whatever"}
end tell
Jason Bruce