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

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

Recommended Posts

Posted

I have a rudimentary AppleScript that sends data from FMP to AddressBook (using Perform AppleScript/Calculated AppleScript):




Let ([

  _qt = Individual::Qmk;  //Quotation Marks

  _fn = _qt & Individual::name_first & _qt;

  _ln = _qt & Individual::name_last & _qt];



"tell application "Address Book"¶

  set newPerson to make new person with properties {first name:" & _fn & ", last name:" & _ln & "}" & ¶ &

 "save "addressbook" ¶



  set AddressBookId to id of newPerson¶

end tell¶



delay 1¶



tell application "FMPA 11" ¶

  set cell "AddressBookID" of current record to AddressBookID¶

end tell"



)

(There is another method that I discovered after I wrote the above: FMP to AB )

Now that the data is pushed I would like to open Address Book to that newly created record. I have tried this, without any luck.

It seems that there should be a way for AppleScript to leave FileMaker, go to Address Book and find the new record, though I don't know how to do it.

Can anyone help?

Thanks.

This topic is 5314 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.