Skip to content

MacOS Cronjob

Abhijeet Rastogi edited this page Oct 9, 2023 · 8 revisions
  1. Ensure that calsync is locally installed
$ brew install shadyabhi/tap/calsync
  1. Open Automator

image

  1. Click File -> New on top-left.

image

  1. Choose Application

image

  1. Select Run Shell Script on top-left after searching, double click it.

image

  1. Enter this content in the textbox.
(/usr/local/bin/calsync 2>&1) >> /usr/local/var/log/calsync.log

image

  1. On top-left, click File -> Save, choose location as /Application and name it Calsync.app.

  2. Open /Application/Calsync.app, then ensure that you choose the prompts.

image image

  1. Setup a cron that runs every "x" minutes. Open Terminal and run crontab -e, paste the following:-
* * * * * open -g /Applications/Calsync.app
  1. Voila! This will now sync your calendars every minute.
Clone this wiki locally