pjdodd Posted February 10, 2005 Posted February 10, 2005 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? Cheers
Fenton Posted February 10, 2005 Posted February 10, 2005 Is this possibly a Commit Records issue? I'm not seeing this problem, unless I leave the cursor in a field.
pjdodd Posted February 11, 2005 Author Posted February 11, 2005 I'll try that - if you can tell me how to commit records in Applescript? (tried a commit records in Scriptmaker after the Aplescript step, no effect)
Fenton Posted February 11, 2005 Posted February 11, 2005 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.
pjdodd Posted February 14, 2005 Author Posted February 14, 2005 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
Fenton Posted February 14, 2005 Posted February 14, 2005 I just figured out how to "commit record" from AppleScript: save current record
Recommended Posts
This topic is 7589 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 accountSign in
Already have an account? Sign in here.
Sign In Now