Jump to content

Applescript Bug in Developer 7.03 Mac?

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

Recommended Posts

I have come across a simple and disturbing bug in FM7 and would like confirmation from other users (or some advice to correct the error if im making a false claim).

Here goes.

Bug Number 1

I) I setup a Filemaker Script

2) Inserted a perform native Applescript step.

3) Applescript works well EXCEPT when attempting to alter data from the FIRST record in the current set. Seriously, just a simple Applescript attempting to set basic data fails to the "Record in current use" error on the first record, but works on all the other records.

Is this a bug?

Bug number 2

When revising said Applescript for a runtime solution, setting field data fails for ANY record if Filemaker remains open. Quit FM7, runtime works fine.

Is their a code workaround that enables the Applescript to specifically address the runtime?


Link to comment
Share on other sites

The problem is that the record in FileMaker has to committed (or at least not busy) BEFORE the AppleScript runs. So just have a Commit Records/Requests step, then a Perform AppleScript step. My experience is that FileMaker runs AppleScript faster than an AppleScript application does, so there's no real advantage to use external AppleScript applications in most situations.

That's a good question though, how to tell FileMaker to commit from an AppleScript. I don't know.

Link to comment
Share on other sites

Thank you greatly for your help.

Inserting a Commit Records immediately BEFORE the Applescript step has solved the problem...it seems that FM doesn't like having uncommited records. Makes me wonder whats the point of setting the ******* thing to automatically commit new records anyway but c'est la vie.

BIG HUG to Fenton

Link to comment
Share on other sites

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