Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Sample Mac OS X `launchd` script to watch a folder and run DITA builds whenever files change
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<string>/Users/username/projectdir/scripts/</string> <!-- ◄ Run this… -->
<integer>300</integer> <!-- ◄ if at least 300 seconds (5m) have passed since last build, AND… -->
<string>/Users/username/projectdir/dita-src</string> <!-- ◄ …if any files here have changed -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment