Home / Mac program scheduling (like crontab) edit

User scripts in ~/Library/LaunchAgents
After adding a script, run: launchctl load . to make sure the script gets loaded by launchd. Use launchctl list to verify it was loaded.
After modifying a script, do launchctl unload ${label} followed by launchctl load ${label}, to make sure the script was updated.
Do launchctl list to see list of loaded script. This is undocumented by appears to be true: 1 in status column means there’s a problem.
Example script local.kjk.sumatrastatsdaily.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">





Go to index of articles.

Feedback about page:

Optional: your email if you want me to get back to you:

Share on