Jump to content
Server Maintenance This Week. ×

Broken FM Applescript on conversion


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

Recommended Posts

HELP!!! :

I have a converted solution that uses AppleScript to send emails via Entourage.

It seems to fail when trying to pass a value back to FileMaker. Here's the original applescript code where the failure is occurring:

set cell "g_num" of (current record of database "Correspondence.fp5") to theValue




I played around a little and found that if I changed it to something like this:




set field "g_num" of table "Correspondence" of database "Correspondence" to theValue

I have been able to create a scratch file where I get this to work, but I can't seem to pass a value back to the hosted "converted" file.

Any help would be greatly appreciated!

TIA,

Aaron

Edited by Guest
Link to comment
Share on other sites

Why did you change "cell" to "field"?

In both old and new versions, a field is an entire column -all records in found set or all records in database depending on more details of the reference. A cell belongs to a single record.

Link to comment
Share on other sites

Scratch that.. I see it does matter. It appears that "set field" will update all records, whereas "set cell" operates against the record you are on. While a global field does contain the same value for all records, I can't wait for all rows to be processed.. Changing to set cell on the line I was playing with did the trick.

Link to comment
Share on other sites

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