activeDocument.saveAs RawSaveOptions missing byte order

New Here ,
Jul 12, 2021 Jul 12, 2021

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?

 

TOPICS
Actions and scripting

Views

40

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jul 12, 2021 Jul 12, 2021

Copy link to clipboard

Copied

LATEST

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); }
    }

 

 

 

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines