Re: Palm Desktop & Eudora
Re: Palm Desktop & Eudora
- Subject: Re: Palm Desktop & Eudora
- From: Will Gosney <email@hidden>
- Date: Fri, 1 Mar 2002 20:23:19 -0500
Jason
Voile it works!
Thanks so much, this little script has fixed one of the glaring
deficiencies in Palm Desktop.
Will
At 5:13 PM -0600 3/1/02, Jason W. Bruce wrote:
Will Gosney asked:
Hi
I have been trying to get the following script to work:
tell application "Palm Desktop"
set strFullname to full name of address 0
set strEmail to text of address 0
end tell
set pTheAddress to strFullname & " <" & strEmail & ">" as string
tell application "Eudora"
activate
make message at end of mailbox "Out"
tell message ""
set field "to" to pTheAddress
set field "subject" to thetest
end tell
end tell
-------------------------
> For some reason, Palm desktop 2.6.3 chokes on the word "text"
>
I am using Script editor 1.1.3 on OS 8.6. If I need a newer version
or something where can I get it?
>
> TIA
Will
Hi Will,
Two things. I presume that you're trying to get the email address,
which I believe is stored in the first custom field. So, I think you mean
to say "set strEmail to text of custom 1 of address 0". The problem with
this, however, is that text is both an AppleScript keyword and, in your
version of the Palm Desktop, an application keyword. In order to direct the
term text to the Palm Desktop instead of AppleScript, you have to use the
chevron syntax for text which Palm Desktop understands -- which is <<class
PCTX>>. So, your line above should read:
set strEmail to <<class PCTX>> of custom 1 of address 0
another way without using chevrons is:
set foo to custom 1 of address 0
set strEmail to item 2 of (foo as list)
HTH.
Jason Bruce
_______________________________________________
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.