Script to automatically export and save stl file

 From:  Matadem
11823.1 
Good day.
When I do 3d print spacers/part i do a few versions in a day.
Is there a script so when I select the solid to export it automatically and save it in a folder?

This would save me some time.

Also for the computer gurus out there is there a way to automate tasks??
for example the stl file needs to go into prusa slicer and export as gcode.
my settings are always the same.

is there a way to automate these tasks?