Re: Entourage Connect Method
Re: Entourage Connect Method
- Subject: Re: Entourage Connect Method
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 31 Mar 2003 08:27:54 -0800
On 3/31/03 4:15 AM, "Robert Damm" <email@hidden> wrote:
>
In the following easily followed script, I notice that my dialog is showing
>
up before Entourage is finished downloading mail. Is there a way to tell the
>
script to wait for the connect line to complete before moving on?
>
>
tell application "Microsoft Entourage" to connect to POP account 1
>
display dialog "hi"
>
tell application "Microsoft Entourage"
connect to POP account 1
repeat while connection in progress
delay 1
end repeat
end tell
display dialog "hi"
'connection in progress' is a property of the application, in the
'application' class entry of the Standard Suite. It's a boolean, and you
can always suppress the 'is true' with booleans.
It's also possible to omit the 'delay 1'. People used to be properly afraid,
back in OS 8, that this would hog their entire CPU cycles. It's not likely
to do that in OS X just repeating over and over, if you need a quicker
reaction time.
--
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.