This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:eventgroups [2017/12/11 19:25] James Sentman |
tutorials:eventgroups [2017/12/12 20:45] (current) James Sentman |
||
---|---|---|---|
Line 13: | Line 13: | ||
<code> | <code> | ||
- | property:EventSuffix = “(HOLIDAY)” | + | property EventPrefix:“(HOLIDAY)” |
set eventList to all events | set eventList to all events | ||
repeat with thisEvent in eventList | repeat with thisEvent in eventList | ||
- | if thisEvent begins with EventSuffix then | + | if thisEvent begins with EventPrefix then |
unsuspend event thisEvent | unsuspend event thisEvent | ||
end if | end if | ||
Line 28: | Line 28: | ||
<code> | <code> | ||
- | property:EventSuffix = “(HOLIDAY)” | + | property EventPrefix:“(HOLIDAY)” |
set eventList to all events | set eventList to all events | ||
repeat with thisEvent in eventList | repeat with thisEvent in eventList | ||
- | if thisEvent begins with EventSuffix then | + | if thisEvent begins with EventPrefix then |
suspend event thisEvent | suspend event thisEvent | ||
end if | end if |