Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4936 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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

This topic is 4936 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.