Exporting to SVG via script changes your file name
Using the example code for exporting to SVG via javascript that is in the SDK manual, the file name of the working document is changed to a .SVG (which is really annoying). If you call File-Export As and use the menu, the behavior is that you get the SVG, but your current working file is not renamed (remains a .ai file). This is much more desirable behavior. Can you please change the javascript call to be the same as the menu commands?
To reproduce, use the code attached in the photo. See that your current file is now changed to a .svg instead of a .ai.
