Using a script to save a bitmapThe problem with the save -bs WindowName FileName Width Height was discovered only recently along with a similar problem with the file -c FileName1 FileName2 command.
This is the way to work around the problem until it is fixed:
Create a text file with the following:
[SaveBitmap]
save -bs %1 %2 %3 %4;
[FileCopy]
file -c %1 %2;
and save it with an OGS extension into your Origin directory (such as UTIL.OGS). You can then call this file and pass the various parameters as needed:
run.section(util,SaveBitmap,Graph1 image.bmp 400 300);
and here is the syntax for the new file copy:
run.section(util,FileCopy,c:\origin\origin.ini d:\backup\origin.ini);
This works because the behavior of LabTalk when encountering a Command Error running external scripts is to just exit the script and return and continue whatever script called the external routine.