Re: batch inport to FMP
Re: batch inport to FMP
- Subject: Re: batch inport to FMP
- From: Malcolm Fitzgerald <email@hidden>
- Date: Tue, 2 Apr 2002 08:53:52 +1000
I have taken peoples suggestions to move and rename the file then
import it into FMP. This works fine until I add the delete
statement. FMP is much slower than applescript so by the time FMP
goes to look for the file applescript has already deleted it. How
can I tell applscript to wait for FMP to finish? I have tried having
a Tell FMP block in the main script and tried breaking it out as a
separate handler. I am using OSX and AppleScript 1.7.
Getting the timing right isn't something that you can do easily.
Basically its a race but there are things which you can do to work
with this. If it's necessary for FMP and AS to engage in some sort of
"call and response" then you can set fields in the FMP database, ie
set field "readyToRun" to "True", tell AS to wait until "readyToRun"
is true. Easier, if you're able to do it, is to have both processes
running parallel. You can set up an AS to run continuously in the
background and use FMP to send appleevents to it. The FMP
documentation will show you how. I find it easiest to get FMP to do
something, then get AS to do something or vice versa.
--
--
Malcolm Fitzgerald email@hidden
Database Manager
http://www.asauthors.org
The Australian Society of Authors ph: 02 93180877 fax: 02 93180530
_______________________________________________
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.