On Apr 12, 2006, at 5:04 PM, Bob R. wrote:
> 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.
What I did was as follows:
[1] Establish a folder to hold the image file to be inserted.
[2] Establish a file in that folder that would be inserted via the SM
[3] Taught the SM to insert that file in the field.
[4] Told the AS to delete the file (2) in the folder (1).
[5] Told AS to COPY an image I wanted to the place where that file
was located.
[6] Told AS to RENAME the file to something the SM would recognize.
[7] Had the AS call upon the SM to insert the image.
Repeat steps 4 through 7 as necessary, based on a list of files that
were to be inserted.
Yes It's kludge, but so is FMP in my opinion. I've given up trying to
get FMI out of it's we'll-give-the-users-what-we-want-when-we-want-to-
give-it-to-them mode for the last 10 years
Hope that helps.
Regards,
Chuck
>
> 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.
>>>
>> =====================================================================
>> ====
>
|