Re: Flow control from File Maker Pro
Re: Flow control from File Maker Pro
- Subject: Re: Flow control from File Maker Pro
- From: ehsan saffari <email@hidden>
- Date: Wed, 04 Dec 2002 01:03:49 -0600
On 03/12/2002 22:10, Andrei Morozov <email@hidden> wrote:
>
>
Hi everybody,
>
I run into a problem when using scripting in File Maker and AppleScript
>
together. Here is an example:
>
>
Let's say, I have two FMP scripts: "Print" and "Control".
>
>
"Print" script has a single step Print[] - it prints something.
>
"Control" has a single step:
>
>
Perform AppleScript [
>
>
display dialog "Before calling Print script"
>
tell application "File Maker Pro"
>
do script "Print"
>
end tell
>
display dialog "After calling Print scrip"
>
]
>
>
>
That's what I experience: I see "Before calling Print script" message, press
>
OK, little pause, then I read "After calling Print script" message, press
>
OK, and only after that I get dialog boxes for printing.
>
>
How can I make sure that the "Print" script has completed all its tasks
>
before the following steps in the "Control" script are executed?
Set your printer to process jobs in the foreground, rather than
background. This makes sure the "After" script exxecutes when you want
it, but will tie up the computer until the print job is done. If printing
is done in background, the delay after print is the time it takes for FMP
to process the print job... the printer doesn't give any indication to
FMP (or any other app, AFAIK) that the job has been completed (i.e. all
sheets of paper to be printed are in the out tray of the printer)
cheers
ehsan
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.