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

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

Recommended Posts

Posted

I'm using the following script and it's doing the strangest things:

tell application "FileMaker Pro"

activate

tell database "lead_routing.FP5"

activate

set gEmailScript to cell "gEmailScript" of record 1 as styled text

create record at layout "Entry View" with data {"Dan", "", "", theTitle, Address1, Address2, theCity, theState, theCountry, PostalCode, Phone, "",

Posted

I just figured it out by myself. The order of fields is based on the tab order of the current layout. Once I created a layout w/just the fields I wanted to import, everything went fine!

Posted

A somewhat more robust method (ie, its not dependent on that layout never changing, and allows you to update the script easily later) is to use steps like this:

set MyRecord to create new Record

set cell Field1 of MyRecord to .....

set cell Field2 of MyRecord to ...

etc.

It will save you a lot of work later, and it, at any rate, makes your code more portable if you ever have to tweak out a different field set-ing applescript

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