• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Entourage Connect Method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Entourage Connect Method (From: Robert Damm <email@hidden>)

  • Prev by Date: Re: [HS] GhostScript
  • Next by Date: Creating XML from Indesign?
  • Previous by thread: Entourage Connect Method
  • Next by thread: AppleScript bug with 15+ digits.
  • Index(es):
    • Date
    • Thread