Hi Tom, try putting this in instead, this one should put up a file dialog that only has .jpg in it:
script:var img = moi.view.screenshot( 'viewpanel', false ); var name = moi.filesystem.getSaveFileName( 'Save Image', 'JPG files (*.jpg)|*.jpg' ); if ( name != '' ) img.save( name );
- Michael
|