Skip to content
Dariusz Rybicki edited this page Oct 9, 2019 · 3 revisions

Sync Reading List to Calendar in background

  1. Copy Reading List Calendar.app to your /Applications folder
  2. Run it, configure and make sure it syncs without a problem
  3. Add launch agent that runs sync once an hour. Create file ~/Library/LaunchAgents/pl.darrarski.ReadingListCalendarSync.plist with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>pl.darrarski.ReadingListCalendarSync</string>
  
    <key>ProgramArguments</key>
    <array>
        <string>/usr/bin/open</string>
        <string>-W</string>
        <string>-g</string>
        <string>-j</string>
        <string>-a</string>
        <string>Reading List Calendar</string>
        <string>--args</string>
        <string>-sync</string>
        <string>-headless</string>
    </array>

    <key>RunAtLoad</key>
    <false/>

    <key>KeepAlive</key>
    <false/>
  
    <key>StartCalendarInterval</key>
    <dict>
        <key>Minute</key>
        <integer>30</integer>
    </dict>
</dict>
</plist>
  1. Load new launch agent using launchctl command:
launchctl load ~/Library/LaunchAgents/pl.darrarski.ReadingListCalendarSync.plist
Clone this wiki locally