Cheat sheet
Schedule a task with launchd
-
Create a
Property List XML file
(.plist
) to define the job and schedule -
Verify the
plist
file withplutil -lint <plist_file>
-
For
User Agents
, copy theplist
file to$HOME/Library/LaunchAgents
-
Load the job with
launchctl bootstrap gui/$(id -u) <plist_file>
-
Resources