Make locator.updatedb run daily on Snow Leopard w/o hacking /System/Library?

On Snow Leopard, the locate database is updated once a week by a launchd job, /System/Library/LaunchDaemons/com.apple.locate.plist. I'd like to make the updater run daily, but AFAIK it's considered very bad form to edit anything in /System.

What's the best way to change its StartCalendarInterval so it runs once a day?


The way I understand it, that System folder launchd job does nothing but execute /usr/libexec/locate.updatedb itself.

So simply create your own launchd job executing /usr/libexec/locate.updatedb that runs once a day.

As a sidenote, here's a Super User answer which recommends using mdfind -name <filename> instead of locate so that you can use the Spotlight database which is continually updated.

And this Ask Different answer has more info on creating launchd jobs if you need more help with that.