script listener by selecting Save As in Photoshop.
However, the resulting script would only save .sgi files:
var idsave = charIDToTypeID( "save" );
var desc17 = new ActionDescriptor();
var idAs = charIDToTypeID( "As " );
desc17.putString( idAs, "SGI" );
var idIn = charIDToTypeID( "In " );
desc17.putPath( idIn, new File( "Y:\\lak_temp\\output\\theCoolest.rgb" ) );
var idCpy = charIDToTypeID( "Cpy " );
desc17.putBoolean( idCpy, true );
executeAction( idsave, desc17, DialogModes.NO );
Is there an extra step to tell Photoshop that it needs to use a sub-type of the SGI format?
I have a plugin from telegraphics that lets me save in the .rgb format. I imagine this is why I'm having a hard time with it.
I also tried using the saveAs() function as mentioned in the documentation,
but I've had no luck with it on this format:
var RGBOptions = new SGIRGBSaveOptions();
RGBOptions.alphaChannels = false;
RGBOptions.spotColors = false;
app.activeDocument.saveAs(new File( "Y:\\lak_temp\\output\\theCoolest.rgb" ), RGBOptions , false);
I did notice that the save options object didn't pop up any attributes in the Extendscript editor.
I thought this was wierd, since it popped up suggestions when I use the JPEGSaveOptions object.