• 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
Re: Palm Desktop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: [OT] Apple Lists (was Re: Sort items in a list without OSAXen)
  • Next by Date: Re: Sort items in a list without OSAXen
  • Previous by thread: Re: Move replacing
  • Next by thread: Itunes Playlist Text export to SoundJam or Audion
  • Index(es):
    • Date
    • Thread