Only problem is you can't touch the filesystem from javascript. Unless of course you allow it to post to a webserver cgi script hosted on the machine, but how many people are going to do that.
I wish there was an IE like object like you have on windows which could capture the post event and do something useful. You could then issue system commands or database updates through javascript.