What OS are your using? Mac or Windows?
When you drag and drop, you store a binary copy of the file in the container field. When you use Insert PDF or Insert File from the Insert menu and select "store a reference"--a check box in the dialog box that pops up--the resulting file reference entered in the file should enable you to open the file by double clicking it.
If you want the binary copy in the container field, you can set up a script that exports the field contents and opens the file for you. In addition to exporting to the desk top, you can export to temporary items so as not to clutter up your computer with exported copies of your files.
Thank you for your quick response!
I was playing around on both Mac and Windows.
Okay when I ended up doing was dragging and dropping the PDF in to the field, so it sounds like it's stored inside of it, and like you said I will need a script to export/open it. Now that I know this is possible, I'll look in to that specifically.
Out of curisoity, if I use 'Insert PDF' it is simply linking to the PDF on my system? So if I delete that seperate PDF file or move it to a new location on my system, I will no longer be able to open it, correct? In that case, I think I will have to store a binary copy and export with a script.
Thanks again for your help!
Insert PDF and Insert File can either insert a copy of the file or they can insert a reference to it. As I stated in my last post, you can click a check box titled "store a reference". If you select that option, you are inserting a reference and renaming or moving the file will break the connection and you won't be able to view or open the file from FileMaker's container field where you inserted the now out of date reference.
Set Variable [$Path ; value: "file:" & Get ( TemporaryPath ) & "PutFileNameexpressionhere" & ".PDF" ]
Export Field contents [Yourtable::YourContainerField ; $Path ]
Will export the file from the container field to your temporary items folder. There's a check box that you can select with this script step that will atuomatically open this file once it is exported.