Tengo muchas acciones que las guardo en jsx. Quiero usarlos para hacer una aplicación con Photoshop. Podría convertir la acción a xml y jsx. Pero su código en reaccionar, no se puede leer. Pongo un código de acción simple aquí. ¿Puedes decirme qué debo hacer? ¿Necesito una biblioteca especial para estos códigos? ¿O hay alguna forma de hacerlo? La información en este caso que busqué tiene al menos siete u ocho años.
#target photoshop // // Action2.jsx // // // Generated Thu Jun 30 2022 12:41:20 GMT+0430 // cTID = function(s) { return app.charIDToTypeID(s); }; sTID = function(s) { return app.stringIDToTypeID(s); }; // //==================== Action 1 ============== // function Action1() { // Curves function step1(enabled, withDialog) { if (enabled != undefined && !enabled) return; var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO); var desc1 = new ActionDescriptor(); desc1.putEnumerated(sTID("presetKind"), sTID("presetKindType"), sTID("presetKindCustom")); var list1 = new ActionList(); var desc2 = new ActionDescriptor(); var ref1 = new ActionReference(); ref1.putEnumerated(cTID('Chnl'), cTID('Chnl'), cTID('Cmps')); desc2.putReference(cTID('Chnl'), ref1); var list2 = new ActionList(); var desc3 = new ActionDescriptor(); desc3.putDouble(cTID('Hrzn'), 0); desc3.putDouble(cTID('Vrtc'), 0); list2.putObject(cTID('Pnt '), desc3); var desc4 = new ActionDescriptor(); desc4.putDouble(cTID('Hrzn'), 105); desc4.putDouble(cTID('Vrtc'), 66); list2.putObject(cTID('Pnt '), desc4); var desc5 = new ActionDescriptor(); desc5.putDouble(cTID('Hrzn'), 255); desc5.putDouble(cTID('Vrtc'), 255); list2.putObject(cTID('Pnt '), desc5); desc2.putList(cTID('Crv '), list2); list1.putObject(cTID('CrvA'), desc2); desc1.putList(cTID('Adjs'), list1); executeAction(cTID('Crvs'), desc1, dialogMode); }; step1(); // Curves }; //========================================= // Action1.main //========================================= // Action1.main = function () { Action1(); }; Action1.main(); // EOF "Action2.jsx"