var strPath = "G:\\images\\Current\\_MG_"+ index +".CR2";
I tried - it doesn't work either.In this case, the ActionManager code works properly.
var c2t = charIDToTypeID,
s2t = stringIDToTypeID;
var d = new ActionDescriptor();
var params = new ActionDescriptor();
d.putPath(s2t("null"), new File("G:\\images\\Current\\_MG_" + index + ".CR2"));
d.putObject(s2t("as"), s2t("Adobe Camera Raw"), params);
executeAction(s2t("open"), d, DialogModes.NO);
I am writing a script to show a side-by-side before/after the edit, and I cannot load the RAW image with all parameters reset.
The code works when I change the CameraRAWOpenOptions.settings to "CameraRAWSettingsType.CAMERA", but the problem is that I need to keep the crop and transform image after the edit, so the framing of both the before and after matches.