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

Re: AppleScript & Palm Desktop


  • Subject: Re: AppleScript & Palm Desktop
  • From: "Jason W. Bruce" <email@hidden>
  • Date: Wed, 17 Jan 2001 10:30:54 +0000

From: Andrew Duncan <email@hidden>

> Hi - this is my first post to this list and I'm hoping someone out there can
> help me. I have Mac OS 9.1 and Palm Desktop v2.5 and I'm trying to work out
> a way to script the exporting of a contact from Palm Desktop into a format
> (tab and return) that can then be imported by FileMaker Pro 5.
>
> I've stumbled around with the Palm Desktop dictionary and there is an export
> command but I can't seem to get this to export any data from a current
> contact. I get a message that "Palm Desktop got an error: can't make some
> data into the expected type".
>
> If anyone has any experience in scripting Palm Deskop, particularly
> exporting of data, I'd love to hear from you or see some source code that
> you could share.
>
> Kind regards,
> Andrew

You can't script an export from Palm Desktop, but you can grab data from
each Palm record, put it into a list, and create a new record in FileMaker
with the list. Something like the following:

tell application "Palm Desktop"
set recordlist to {first name, last name, primary address} of name info
of address 1
end tell


sendToFileMaker(recordlist)


to sendToFileMaker(recordlist)
tell application "FileMaker Pro" to tell database "foo" to create new
record with data recordlist
end sendToFileMaker


The problem with scripting the transfer of data from Palm to FileMaker is
that you can't grab the data all at once from Palm -- at least I haven't
figured out how. Instead, you have to build a list by looping through each
Palm record, and pass the list to FileMaker. So, something like this:

Tell application "Palm Desktop"
set upperLimit to count of every address
repeat with loopvariable from 1 to upperLimit
set recordlist to {first name, last name, primary address) of name info
of address loopvariable
end repeat
end tell


Hope this helps.

Jason Bruce


  • Follow-Ups:
    • Re: AppleScript & Palm Desktop
      • From: "Jason W. Bruce" <email@hidden>
  • Prev by Date: fetch directory listing
  • Next by Date: Re: Xpress 4.1 and group box type
  • Previous by thread: AppleScript & Palm Desktop
  • Next by thread: Re: AppleScript & Palm Desktop
  • Index(es):
    • Date
    • Thread