Title: Re: Setting the index of a window via Applescript
on 26/6/02 20:22, Michael W. Wellman  wrote:

> The brute force method is, of course, to iteratively select all the other
> windows. ;-)

Excellent, thanks.
I haven't tried that before...

Now I can answer my own question, how to stop the Progress window from popping up when checking mail.

tell application "Microsoft Entourage"
    set myWindow to window 1
    set theScheduleList to the name of every schedule whose enabled is true and name is not "Send & Receive All"
    repeat with i from 1 to (count theScheduleList)
        set theSchedule to item i of theScheduleList
       execute schedule theSchedule
   end repeat
   select myWindow
end tell

I use this in conjunction with Paul SMTP Location X which enables/disables my schedules depending on the location.
The snippet above runs all enabled schedules except Send and Receive All in order to avoid a loop...

cheers
michael


Reply via email to