Skip to content

Instantly share code, notes, and snippets.

@czottmann
Created January 21, 2012 17:48
Show Gist options
  • Save czottmann/1653411 to your computer and use it in GitHub Desktop.
Save czottmann/1653411 to your computer and use it in GitHub Desktop.
Start Mailplane3 at 10:00/14:00/18:00 o'clock each day.
<?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>Mailplane3.scheduled</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/Mailplane3.app/Contents/MacOS/Mailplane3</string>
</array>
<key>StartCalendarInterval</key>
<array>
<dict>
<key>Hour</key>
<integer>10</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
<dict>
<key>Hour</key>
<integer>14</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
<dict>
<key>Hour</key>
<integer>18</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
</array>
</dict>
</plist>
# Load it (and make the schedule persistent)
launchctl load -w ~/Library/LaunchAgents/de.municode.Mailplane3Scheduler.plist
# Unload it
launchctl unload -w ~/Library/LaunchAgents/de.municode.Mailplane3Scheduler.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment