• 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: Paul Berkowitz <email@hidden>
  • Date: Fri, 11 Aug 2006 17:50:00 -0700
  • Thread-topic: How to 'wait' for an entourage schedule event to complete?

On 8/11/06 5:42 PM, "Susan Mackay" <email@hidden> 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?


tell application "Microsoft Entourage"
    execute schedule "Send & Receive All"
    delay 1
    repeat while connection in progress
        delay 1
    end repeat
    --rest of script
end tell


The first 'delay 1' (pauses 1 second) is to make sure that downloading has
started before the 'repeat' block starts - otherwise there's no connection
in progress yet and it will just be skipped.

Instead of executing the schedule, you could always just connect to the
accounts directly, which does the same thing but will start a bit quicker.

Note: if you have any rules that run automatically, they will all work
before the script moves on. So any messages moved by rules will not be in
the Inbox but wherever the rules have moved them.
--
Paul Berkowitz


 _______________________________________________
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

  • Follow-Ups:
    • How to match data in two different text files as fast as possible?
      • From: Richard Rönnbäck <email@hidden>
References: 
 >How to 'wait' for an entourage schedule event to complete? (From: Susan Mackay <email@hidden>)

  • Prev by Date: Re: How to 'wait' for an entourage schedule event to complete?
  • Next by Date: How to match data in two different text files as fast as possible?
  • Previous by thread: Re: How to 'wait' for an entourage schedule event to complete?
  • Next by thread: How to match data in two different text files as fast as possible?
  • Index(es):
    • Date
    • Thread