Forgive my ignorance here: I know next to nothing about Applescript!

I've got a simple script to run Mailfilter, then check mail in PowerMail.
It's simply:

-----------------------------------------------
do shell script "/usr/local/bin/mailfilter"

delay 10

tell application "PowerMail"
        connect again
end tell
-----------------------------------------------

The delay is to give Mailfilter time to finish, but it often isn't
enough, and PM fails to run. Is there a facility in Applescript to watch
for the completion of a process before continuing? Or would I be better
off just writing a shell script with an Applescript call in it to start PM?

TimH


Reply via email to