The Cron trigger (v8+) lets you execute a macro periodically while you are logged in.
The Cron format lets you specify when a trigger will fire based on the time of day and and day of month and week.
The times are set using 5 (or 6) space separated fields, representing the
Each field can be a single number, or it can be a range (eg “3-7”) or a set of numbers or ranges separated by commas (eg “3,5-7,9”). Alternatively, the field can be
* which matches all values. You can also add
/ and a number after a range to match every N'th value (eg “0-25/5” will match every five minutes in the first half of the each hour).
For the Day of Week and Month fields, you can use the first three letters of the English name (eg “Jan” for January (1), or “Sun” for Sunday (0)).
If the field starts with a minus sign (-), it matches from the end of the range (eg -1 in day of the month means the last day of the month).
The trigger will match when all fields match the current time (as each minute ticks over). Exception: if either day of month or day of week is
* and the other isn't, then the trigger will match only the non-
* field, otherwise the trigger will match when either field matches.
If you start the day of the month field with a “+”, then the trigger will match only if both the day of the week and day of the month field matches. This allows you to match the last Friday of the month using “-1-7” for the day of the month, and “+Fri” for the day of the week.
Alternatively, the entire field can be one of:
annually— same as
0 0 1 1 *(midnight at the start of January 1st each year).
@monthly— same as
0 0 1 * *(midnight at the start of the 1st of each month).
@weekly— same as
0 0 * * 0(midnight at the start of the each Sunday).
@midnight— same as
0 0 * * *(midnight at the start of the each day).
@noon— same as
0 12 * * *(noon in the middle of the each day).
@hourly— same as
0 * * * *(at the start of each hour).
The %TriggerValue% token will hold the current time and date (
Remember that your Mac must be awake for any trigger to run, and that if the screen is sleeping, locked, or screen saving, then UI actions generally will not work.
|Cron Setting||When Macro Triggers|
| ||AT one minute past midnight each day|
| ||AT 23:45 (15 minutes before midnight) near the end of each Saturday|
| ||AT noon each Monday|
| ||AT 6pm each Friday|
| ||AT 9am, 12am and 3pm each day|
| ||AT EVERY minute on workdays|
| ||AT EVERY quarter hour|
| ||AT EVERY hour outside office hours|
| ||AT noon on April 1st|
| ||AT 8:30am on 17 April, 2019|
| ||AT noon the 15th of each month|
| ||AT noon each Monday and the 15th of each month|
| ||AT noon each 15th of each month if it is a Monday|
| ||EVERY five minutes (AT :00, :05, :10, etc)|
| ||EVERY five minutes (AT :03, :08, :13, etc)|
| ||AT 8:30 am on the first Saturday of each of month|