Say, for whatever reason, you want to bounce iphoto once an hour. You can do that with AppleScript and cron.
Copy this into ~/bin/bounce-iphoto:
#!/usr/bin/osascript
on appIsRunning(appName)
tell...
Written by matthew
on Hints and Kinks
8 days 21 hours ago