Save and close all windows of an app (Scrivener)

I usually have the app Scrivener open in many windows which I save multiple times throughout the day, and save and close at the end of the day. Because the Scrivener files are packages, each save takes a bit of time, multiplied by the number of windows open.
Is there a KBM macro which would allow me to trigger a macro which would save all windows and which would save and close all windows.
Thanks very much !

You could use a While action (KM Wiki), with a criteria of “window exists”, to loop through all windows of the app, and using the Select or Show a Menu Item action (KM Wiki), Save, and then Close each window.

1 Like

thanks. I will look into it.