So if you register an IMapChangeListener at the MapController it will be executed on save. Unfortunately you have to manually call a script to register the Listener before...
Regards,
Volker
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello
I'd like to be able to automatically launch a script whenever I save a mindmap. Example use case: write to a file the latest modification time of all nodes (see http://freeplane.sourceforge.net/wiki/index.php/Scripts_collection#A_node_with_the_last_modification_date_of_the_map )
Is this possible?
Thanks for your time.
-Xavier
Hello Xavier,
there is no special scripting support for registering tasks to execute on special occasions.
But near the end of MFileManager.save() there is this code:
So if you register an IMapChangeListener at the MapController it will be executed on save. Unfortunately you have to manually call a script to register the Listener before...
Regards,
Volker
BTW: Anyone interested in startup and shutdown hooks to execute scripts on startup and/or shutdown are invited to suggest a proper API for that.
Volker