export field contents does not return error
Mac & Windows
FileMaker 12.0v2. I just wrote a script that exports a file in a container field to the desktop. Trying to trap a possible error I locked the file on the desktop and the script step does not replace the file, but also does not raise an error code.
Use the Export field contents script step with a container.
Lock the file that has been exported. Export again.
Get ( LastError ) <> 0
Get ( LastError ) = 0
No error dialog appears either and if you specify the "open" option FileMaker opens the file from it's original location--creating the illusion that the file was successfully exported.