Skip to content

Error Converting ES / AM Code with SETD #3

@FixelAlgorithms

Description

@FixelAlgorithms

I have the following Temp.jsx file:

var mainScriptPath = Folder($.fileName).parent.parent ;
var scriptFile = new File(mainScriptPath + '/ad-to-uxp.jsx')
$.evalFile(scriptFile);

cTID = charIDToTypeID;
sTID = stringIDToTypeID;

function s2t(s) {return app.stringIDToTypeID(s);}
function c2t(c) {return app.charIDToTypeID(c);}

var dialogMode = DialogModes.NO

// executeActionForUXP

var desc1 = new ActionDescriptor();
var ref1 = new ActionReference();
ref1.putProperty(c2t("Chnl"), s2t("selection"));
desc1.putReference(c2t("null"), ref1);
desc1.putEnumerated(c2t("T   "), c2t("Ordn"), c2t("Al  "));
executeActionForUXP(c2t("setd"), desc1, dialogMode);

It seems it can't be proceed and generates the following error:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions