User Tools

Site Tools


Sidebar

dictionary:lists:allevents

All Events

Returns a list of all Scheduled Events.

Usage:

all events
returns an AppleScript list with the names of all Scheduled Events.

Optional Parameters:

with extract
returns a list of Event Extract Records

Examples:

--disable all events beginning with "(vacation)"
--I actually use this!
 
set MyEvents to all events
repeat with ThisEvent in MyEvents
  if THisEvent begins with "(vacation)" then
    suspend event ThisEvent
  end if
end repeat

I have many events that simulate activity in the house when we're not here. I have named them all starting with (Vacation) so that I can turn them on and off by running the above example and not have to do so manually, or by deleting and recreating them each time.

dictionary/lists/allevents.txt · Last modified: 2009/09/28 16:17 (external edit)