idling Folder action script that moves a file when it is modified

I want to move a file when its modification date changes. Preferably in a folder action script that idles and waits. Anybody know where to start? Thanks in advance:)

To my knowledge the only folder action triggers are on add, on open, and on close. So that said I think the best way to do this would be a stand alone script (launched from login items if you desire) that would build a list of lists (or two which correspond) containing the file ref and the mod date. Then every so often (your idle amount) compare the files and mod times to the values in the list. If they are different you have a file thats been modified.

OK I’ll attempt it. thanks!