September 15, 200619 yr I want to script a Quicktime [PDF] insert into a container field [clinical::view_pdf] from a directory of PDF files residing at ~/desktop/docs/. On the same layout as the container field is a calc field [clinical::c_FilenameKey] with the filename in it. Setting the variable, I want to tell Insert QuickTime to get the file that is the same as the calc field and insert into the container? Below is the script I'm using, but in the debugger I get the error message: "Insert QuickTime could not be completed." Need the eagle eye of someone wise in the ways of FileMaker. Set Variable [$filePath; Value: Case ( Abs ( Get ( SystemPlatform ) ) = 1;"Moviemac:";"Moviewin:" ) & Get ( DesktopPath ) & "Docs/" & CLINICAL::c_FilenameKey] Insert QuickTime ["$filePath"] ~Dennis
September 16, 200619 yr Author Comment: you are indeed the perspicacious eagle-eye to catch this case error. Changing to "moviemac" and "moviewin" in the parameter setting allows everything to work perfectly. Thank you so very much. ~Dennis
Create an account or sign in to comment