User Tools

Site Tools


tutorials:eventgroups

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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
tutorials/eventgroups.1513020331.txt.gz · Last modified: 2017/12/11 19:25 by James Sentman