you will both need to change the script
the following is not tested! (i'm not at home)
for different folder change the second argument
Code: Select all
SaveMap("MyMapName", "Folder\\OtherFolder\\");
for different file name change the first argument
Code: Select all
SaveMap("MyMapName"^Now, "Autosave\\");
you can't determine the environment inside the script (closest thing would be adding TM/SM)
(the current time isn't the local daytime like that, it would need a bit more code to access to local time!
with "Now" it just represents how long the script is running)
my suggestion would be
Code: Select all
SaveMap(Map.MapInfo.Name"_"^Now, "Autosave\\");
this will save the map in the current name (so that you can properly distinguish between different autosaved maps) with a timestamp as prefix
example:
"MyMap_124124.Map.Gbx"
or if you want to autosave at the actual location of the map (if it has been saved already somewhere)
Code: Select all
SaveMap(Map.MapInfo.Name"_"^Now, Map.MapInfo.Path^"\\");
example:
"Storm/Royal/MyMap_124124.Map.Gbx"