Post #1156: 
Hi, looks like this command works only in Blender’s file browser.
You can write some custom script to save the file using bpy.ops.wm.save_as_mainfile(filepath=‘…’) and bpy.data.filepath