You could add something like the following after your Insert File step to check for any errors:
Set Variable [ $LastError; Value:Get ( LastError ) ]
If [ $LastError ≠ 0 ]
Show Custom Dialog [ Title: "Insert File Error"; Message: "There was an error inserting the file. Error Code: " & $LastError; Default Button: “OK” ]
Exit Script [ ]
You can also add:
Set Error Capture [ On ]
before the Insert File step to suppress any dialogs that might appear if there was an error.
Hopefully that should get your going.
FileMaker 12/11/10/9/8 Certified Developer
- - - - - - - - - - - - - - - - -
Phone: +61 2 9484 6565
Mobile: +61 418 468 103