Re: Palm Desktop
Re: Palm Desktop
- Subject: Re: Palm Desktop
- From: "Jason W. Bruce" <email@hidden>
- Date: Mon, 03 Sep 2001 20:52:55 +0000
Mirko,
you can obtain the contents of a note in the Palm Desktop by asking for the
body of the note. If the attachment is itself a note, you ask for the body
of the attachment.
tell application "Palm Desktop"
set foo to body of attachment 1 of address 1
end tell
If the contact has several attachments of different types, you can test for
the type of the attachment as follows:
tell application "Palm Desktop"
set foo to attachment 1 of address 1
set bar to foo as list
if item 1 of bar is +class NOTE; then
set foobar to body of attachment 1 of address 1
end if
end tell
Jason Bruce
>
Message: 3
>
Date: Sun, 02 Sep 2001 11:18:16 +0100
>
Subject: Palm Desktop
>
From: Mirko Gude <email@hidden>
>
To: "email@hidden"
>
<email@hidden>
>
>
Dear List,
>
>
who can help with Palm Desktop and Applescript?
>
>
I am able to get a contact with a attached note (look at the script at the
>
end of this mail). Then I try to get the contents of the attached note, but
>
I can't get a way do to this.
>
>
>
Thx,
>
Mirko Gude
>
>
tell application "Palm Desktop"
>
activate
>
set alladdress to count of address
>
>
repeat with i from 1 to alladdress
>
>
get count of attachment of address i
>
if (count of attachment of address i) is not 0 then
>
set theContactSaltName to the salutation name of name info of
>
address i
>
display dialog "Contact with attachment: " & return &
>
theContactSaltName
>
end if
>
end repeat
>
end tell