Timing problem.
Timing problem.
- Subject: Timing problem.
- From: email@hidden (Michael Sullivan)
- Date: Tue, 13 Aug 2002 08:54:46 -0400
- Organization: Society for the Incurably Pompous
I know there's a way to do this because it's been discussed before, but
I can't seem to find it in the archive.
I have a production script that calls a function of a QuarkXT (made to
print), and then goes on to make changes to the document as clean up.
The idea is that I need the document to print in the state it is in when
I call that print job. The problem is that the Xtension (helpfully)
returns done very quickly, before it has actually done all it's
processing. This is cool in a way, because it allows one to go on to do
other things in the script while it's printing.
The problem is that what I want to do in the script next changes the
document, and does it fast enough, that what's there after the change is
what ends up being printed.
I've tried to insert a loops in the script to take up time, but they all
have the same effect as a "delay" which is to halt the app (and thus the
printing) entirely while it's running. So the printing conveniently
waits for all that rigamarole to be done with and for the changes to
happen, and *then* prints...
I'm sure I saw somewhere that there's a way to put in your script "wait
n seconds and let other stuff happen in the meantime", as opposed to
"bring the entire system to a screeching halt for n seconds", but I
can't for the life of me recall what it is, and I'm not finding it in
any of my references.
Any help?
Thanks,
Michael
--
Michael Sullivan
Business Card Express of CT Thermographers to the Trade
Cheshire, CT email@hidden
_______________________________________________
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.