• 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: How to 'wait' for an entourage schedule event to complete?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to 'wait' for an entourage schedule event to complete?


  • Subject: Re: How to 'wait' for an entourage schedule event to complete?
  • From: Stan Cleveland <email@hidden>
  • Date: Fri, 11 Aug 2006 18:29:25 -0700
  • Thread-topic: How to 'wait' for an entourage schedule event to complete?

On 8/11/06 5:42 PM, Susan Mackay wrote:

> I am trying to script the "Send & Receive All" operation in Entourage, and I
> have found that I can trigger the process off (from within my script) by:
>
> tell application "Microsoft Entourage"
> execute schedule "Send & Receive All"
> end tell
>
> However, the script continues to process while the scheduled actions take
> place.
>
> Is there any way to wait until the schedule actions complete and then
> process the rest of the script?

This quick test script seems to work:

tell application "Microsoft Entourage"
    execute schedule "Send & Receive All"
    repeat
        if connection in progress then
            delay 2 -- to allow for gap between multiple accounts
        else
            exit repeat
        end if
    end repeat
    delay 1 -- to allow time for progress bar to stop
    -- now do something else
    set entourageVersion to version
end tell
display dialog entourageVersion

You may want to experiment with changing or even eliminating the delay
commands, especially if there's only one account in your "Send & Receive
All" schedule. FYI, I'm using Entourage version 11.2.3, which is part of
Office 2004.

Stan C.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How to 'wait' for an entourage schedule event to complete? (From: Susan Mackay <email@hidden>)

  • Prev by Date: How to 'wait' for an entourage schedule event to complete?
  • Next by Date: Re: How to 'wait' for an entourage schedule event to complete?
  • Previous by thread: How to 'wait' for an entourage schedule event to complete?
  • Next by thread: Re: How to 'wait' for an entourage schedule event to complete?
  • Index(es):
    • Date
    • Thread