AnsweredAssumed Answered

FileMaker 12 "Insert PDF" Script Step Error 3

Question asked by tweller860 on Jun 25, 2012
Latest reply on Jun 25, 2012 by tweller860

I am in the process of updating a container field built in FileMaker 11 to make use of the interactive content now available in FileMaker 12.


To do that, I've written a script to export the field contents (the PDF file) to the temporary directory and then re-insert the PDF using the "Insert PDF" script step so that the content is interactive. I'm using variables to store the two file paths I need:

$ExportPath = filemac:/Macintosh_HD/TempoaryPath/FileName.pdf

$InsertPath = imagemac:/Macintosh_HD/TemporaryPath/FileName.pdf


Originally, this process was to be run by the users in our Sales and Customer Service departments, but they started getting Error 3 - "Command is unavailable (for example, wrong operating system, wrong mode, etc.)" Since they are using iMacs and networked home directories, I blamed a file system permission setting as the source of the problem. I began to experiment with the script again today and now I'm starting to have the same issue running on a local account on a laptop. I've updated the script to export to desktop instead of the temporary directory but still get the same error.


I am error trapping to verify that the "Export Field Contents" script step is successful before attempting to insert the exported PDF using the "Insert PDF" script step. When I changed the script to use the Desktop, the file definitely appeared on my desktop so I believe that the file does exist when Insert step is executed. Could it be as simple as adding a "Pause" script step?


Has anyone else experienced this problem? The files are hosted using FiileMaker Server Advanced 12 on an XServe running Mac OSX Server 10.6. On the client side, i'm running FileMaker Pro Advanced 12 on a MacBook Pro running Mac OSX 10.6. Any assistance that can be provided would be greatly appreciated.


Best regards,