Re: Checking the status of Entourage
Re: Checking the status of Entourage
- Subject: Re: Checking the status of Entourage
- From: Paul Berkowitz <email@hidden>
- Date: Wed, 05 Feb 2003 20:30:31 -0800
On 2/5/03 6:09 PM, "Scott Griffitts" <email@hidden> wrote:
>
This is confusing to me:
>
>
tell application "Microsoft Entourage"
>
connect to every POP account
>
repeat while connection in progress
>
delay 1
>
end repeat
>
display dialog "finished"
>
end tell
>
>
To my novice eyes this would connect and download and, after all downloads
>
are finished, display "finished". However, it displays "finished" first and
>
then waits for me to confirm the dialog before it connects and starts
>
downloading.
Although you told it to connect, it hadn't finished making the connection
when the script got to the next line. Since connection wasn't in progress,
it told you it was finished.
tell application "Microsoft Entourage"
connect to every POP account
delay 1
repeat while not (connection in progress)
end repeat
repeat while connection in progress
delay 1
end repeat
display dialog "finished"
end tell
And if you have IMAP accounts, turn off LiveSync or it will never finish.
--
Paul Berkowitz
_______________________________________________
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.