The exportPresets event on the Application object provides the capability to save a preset to a file and the importFile event on the Application provides the capability to load a preset. Check on the scripting reference for more detail.
Whow, if I had only know before...
I think I wasted a whole day, trying all kinds of complex scripts, while it could be done in two lines :-(
I almost had a working solution with Dirk's tip, but this is way easier.