Teaching the SM script where to find the picutres folder is exactly the problem I have. In all of Filemaker's script examples, the Inser Picture script names a specific file name. I need to know how to use an Applescript variable instead. thanks, Bob R. On Tue, 11 Apr 2006 17:00:42 -0600, Chuck Pelto <[log in to unmask]> wrote: >I use an FMP ScriptMaker Script, called upon BY an AppleScript. > >The trick is to get the two to coordinate. Therefore, there is a >field in the FMP datafile that the SM script sets to a certain value >when it is finished bringing in the image and the AS script checks to >see if things are finished and it can proceed to the next image. The >AS script also resets that field before calling the SM script again. > >The pratfall....and FMP is FULL of em....is that you need to 'teach' >the SM script where to find the image. Otherwise, the poor thing gets >confused. [Note: One of the MANY reasons I'm moving away from FMP.] > >Hope this helps. > >Regards, > >Chuck > >On Apr 11, 2006, at 4:48 PM, Bob R. wrote: > >> Using Filemaker 6 with OS 10.3.9, I am trying to insert low res PDF >> files into a master >> document to view them as a proof sheet. Using the file name as a >> string does not >> embed the PDF; only the Insert Picture command will do that. My >> problem is how to >> use Filemaker's Scriptmaker to script the Insert Picture command >> using a variable for >> the PDF file name. Here is how FM says to use the do script: >> >> Insert Picture ["myphoto.tif'] >> >> When I try to follow their lead: >> >> do script "Insert Picture [myrealpic.pdf]" >> >> >> the result is "Object not found". And that is for a specific file, >> just to see if it will work. >> Here I try using a variable: >> >> do script "Insert Picture [myfile]" >> >> and nothing happens at that point. >> >> Any suggestions? Thanks, Bob R. >> >=========================================================================