Re: Problem with Filemaker/Applescript
Re: Problem with Filemaker/Applescript
- Subject: Re: Problem with Filemaker/Applescript
- From: SemiColon <email@hidden>
- Date: Wed, 13 Dec 2000 19:15:17 -0800
At 7:16 AM +0000 12/13/00, Pitcher, George wrote:
>
The problem seems to be at the second stage. I use a partition named "H"
>
(for simplicity) and FMP prints a PDF file to that using PrintToPDF, the
>
name having been stored in PrintToPDF's preferences folder. The next step in
>
the AS script is to move that PDF file into the appropriate folder and
>
basically, the script is trying to do it before the file has appeared and
>
gives the error "Can't get file "filename.pdf" of disk "H".
>
>
If I run the script from Script Editor it works. But not when it's being
>
done from Filemaker. I've tried 'ignoring application responses' which just
>
makes things not work even when running from Script Editor.
I think* the problem might be with this line:
do script FileMaker script "AS_Schedule" of document
"HeronFlowmanager.fp5"
The next lines of the script are executed immediately after this
event gets sent (when running it in FileMaker). Perhaps, if you ended
your script on this line, added a final line to the FileMaker script
"AS_Schedule" - a do script line that calls a third FileMaker script
which contains the rest of your first script.
Did you try your script as an applet?
;