Title: Re: Setting the index of a window via Applescript
>   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

I use the similar, but I think simpler, structure:
   set theScheduleList to every schedule whose (enabled is true and name contains "foobar")
   ...
   repeat with eachSchedule in theScheduleList
      execute eachSchedule
   end repeat

mikel

Reply via email to