I wrote / rewrote the script below, which dumps the FM contact into Address Book. It stopped working (not sure if it was when I upgraded to FM advanced 11?)
Any ideas why? I have another script that dumps info in iCal and that still works fine.
-- grab the data from Filemaker
tell application "FileMaker Pro Advanced"
tell current record
set theFirstName to cellValue of cell "Customer FirstName"
set theLastName to cellValue of cell "Customer LastName"
set thePhoneMobile to cellValue of cell "Phone_Mob"
set thePhonehome to cellValue of cell "Phone Home"
set thePhonework to cellValue of cell "Phone work"
set theEmail to cellValue of cell "email"
set theAddressLine1 to cellValue of cell "Address Line 1"
set theAddressSuburb to cellValue of cell "Address Suburb"
set theAddressState to cellValue of cell "Address State"
set theAddressZip to cellValue of cell "Address Pcode"
set theNotes to cellValue of cell "Vehicle List"
end tell
end tell
tell application "Address Book"
set foo to make new person at the end of the people with properties {first name:TheFirstName, last name:theLastName, company:false, organization:""}
make new email at end of foo's emails with properties {label:"home", value:theEmail}
make new address at end of foo's addresses with properties {label:"home", street:theAddressLine1, zip:theAddressZip, state:theAddressState, city:theAddressSuburb}
make new phone at end of foo's phones with properties {label:"mobile", value:thePhoneMobile}
make new phone at end of foo's phones with properties {label:"work", value:thePhonework}
make new phone at end of foo's phones with properties {label:"home", value:thePhonehome}
set note of foo to theNotes
add foo to group "Triple C Customers"
save addressbook
end tell