MACSCRPT Archives

April 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Chuck Pelto <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Tue, 11 Apr 2006 17:00:42 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (48 lines)
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.
>

ATOM RSS1 RSS2