Jump to content

create record is maddeningly unpredictable!


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

Recommended Posts

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, "",

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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