Have your DB do the "Install OnTimer script" script step without passing it any parameters when you exit.
This stops it from running again.
Thanks for that but how does the script know what to do (run exit script) and after how long (nn seconds)?
A couple of ideas I might try if FMP isn't the right backup solution or can't do what you want...
1. To automate tasks like doing something like copying a file when you close an application, look at Keyboard Maestro. It's an extremely cool keyboard macro utility (about $36). You could setup a macro that when you close an application, a "copy" happens (or many other actions). KM has many triggers you can use. This tool is one that saves me lots of time every day.
2. Look at a utility called "Hazel". Hazel is an incredibly useful utility that monitors folders and can do actions at various times. Hazel has an "Upload" action (and sync) that includes:
Using Hazel and an ScanSnap scanner, I've been 100% paperless for 2 years! It's amazing.
Probably the coolest utility you can get on the Mac to make things like regular "copy" commands easy is a utility called "ExpanDrive". ExpanDrive on WIndows "Maps" a drive. On the Mac it creates a volume, but it's all the same idea.
Once you create a "drive" using ExpanDrive, you treat it like any other disk on your system.
Here are the systems that ExpanDrive can connect to:
My personal preference is to externalize as much functionality as possible (when it makes sense).
HOPE THIS HELPS.