Automatically Restart launchd Scripts On Change

This is the launchd script I use to restart launchd scripts when I'm working on them.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
touch /tmp/launchd_ping_a.txt
launchctl unload ~/Library/LaunchAgents/com.alanwsmith.* || true
launchctl load ~/Library/LaunchAgents/com.alanwsmith.*
touch /tmp/launchd_ping_b.txt
  • The restarts everything in my name space. So, anything they do on startup gets triggered each time. Not an issue for me, but something to keep an eye on