Has anyone been able to script the “Palm Desktop” application? I’ve been trying, but none of the classes seem to resolve. What I’m trying to do is write a script that syncronizes the Palm Desktop address book with MacOS X’s built in address book. So far I am having little luck.
I found this page of user submitted scripts for the Palm Desktop
http://scriptbuilders.net/category.php?cat=61
I opened up some of them and found the followinf lines of script for Palm Desktop classes:
–get the contact name
set theName to «class PNFF» of «class CCON» 0
–get the address
set theAddress to «class PAD1» of («class CADR» of «class CCON» 0)
set theAddress to «class PAST» of theAddress & return & «class PACY» of theAddress & ", " & «class PASE» of theAddress & " " & «class PAZP» of theAddress
–get the email address
set email_info to «class PC1 » of «class CCON» 0
set email_address to item 2 of text of email_info
– For those interesting in playing with AppleScript and the Palm Desktop (formerly Claris Organizer)
– here is some code I was playing with just to figure out how the syntax works.
–objClass:«class STSK» = Task
–objClass:«class SAPP» = Appointment
–objClass:«class NOTE» = Note
–objClass:«class CONT» = Contact
–NameInfo of contact 0 – The frontmost showing contact is contact 0
–all fields of contact 0 – gets the fields of the currently viewed contact
–count of attachment of contact 0
–object id of attachment 1 of contact 0 – attachments must be specified by their numerical value
–set x to object id of contact 0
–get objNumber of x[/url]
Hope this helps!