Copy link to clipboard
Copied
When saving as a copy to the RAW format, a second popup appears with an option to set the Byte Order to Macintosh or IBM PC. I expected that option to be there when scripting as well, in the RawSaveOptions object, but I only see a byte order property in the tiff options.
Does anyone know how to save the current document as RAW with IBM PC byte order, from script?
Copy link to clipboard
Copied
Try through AM code
function save_as_raw(file)
{
try {
var d = new ActionDescriptor();
var d1 = new ActionDescriptor();
d1.putString(stringIDToTypeID("fileCreator"), "8BIM");
d1.putBoolean(stringIDToTypeID("channelsInterleaved"), true);
d1.putEnumerated(stringIDToTypeID("byteOrder"), stringIDToTypeID("platform"), stringIDToTypeID("IBMPC"));
d.putObject(stringIDToTypeID("as"), stringIDToTypeID("rawFormat"), d1);
d.putPath(stringIDToTypeID("in"), file);
d.putBoolean(stringIDToTypeID("copy"), true);
d.putBoolean(stringIDToTypeID("spot"), false);
d.putBoolean(stringIDToTypeID("alphaChannels"), false);
executeAction(stringIDToTypeID("save"), d, DialogModes.NO);
}
catch (e) { throw(e); }
}