- Place the day, the script time and the full script path in the scheduler.csv. There are examples in the csv for you to follow.
- Don't remove the header row, it is ignored when the script is ran, but if you do remove it, all of your scripts will not run.
- The order you place scripts in the file does not matter as they filtered by day and sorted by time in the code.
- Days must be capitalized: Monday, Tuesday, etc.
- Time must be written in the 24 hour format: 00:00-23:59.
-
Open scheduler.workflow with automator.
-
Replace the directory here after the cd command with whatever directory you decide to leave this folder.
cd /Users/earlchase/documents/scheduler
-
The script is sourced and then called by the workflow so no further configuration is needed.
- Open automator.
- Click on open an existing document and open scheduler.app
- Confirm scheduler.workflow is selected as the workflow this app runs when opened.
- You shouldn't have to change anything at all to get to work. All you are doing is confirming everything is in order.
- Open your calendar and create a recurring event.
- The first time you should set this event to run basically immediately as the calendar is going to ask you for permission to open the automator app.
- Once you have run this one time and given the permission to run, change the date of the event to about 30 minutes to an hour before you normally run your scripts.
- Click on alert and choose customize.
- Then click on the top dropdown menu that shows up and choose open a file.
- Click on calendar and select other.
- Select the scheduler.app
- Click ok and you are done.
- Don't worry about making your scripts executable, all scripts are ran like this:
python3 /Users/earlchase/documents/scheduling.py