tirtza Posted April 9, 2003 Posted April 9, 2003 Is it necessary to put a pause in a filemaker script which calls this applescript? It loops through all records setting the image to the path. set image_path_var to cell "ImagePath" of current record set cell "SKETCH" of current record to file image_path_var
DykstrL Posted April 11, 2003 Posted April 11, 2003 You may need to include a pause for the Applescript to complete - it depends on what the Applescript is doing and if you are using a result to complete the FileMaker script. I'm not an Applescript expert by any means, but looking at yours, it looks like you may need maybe a second or so pause to let the Applescript to bring the information into the field. Just try it without a pause and if it doesn't work, start with a 1 second pause and increase it until the scripts work.
BobWeaver Posted April 12, 2003 Posted April 12, 2003 I hate time delays. If they are long enough to ensure that everything works, then they likely are wasting a lot of time. Rather than pausing for a period of time and hoping that it is long enough for the Applescript to complete, I would have the Filemaker script do this: Set field [Flag, ""] Perform Applescript[whatever] # The applescript should be set up so that its last step # sets cell "Flag" to some value. Loop # Wait in the loop until Flag is set Exit Loop If [not IsEmpty(Flag)] End Loop You likely would want to include some time checking in the loop so that if something goes wrong with the applescript, it won't cycle endlessly.
Recommended Posts
This topic is 7900 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