Open RAW file in ACR
Posted: Mon Sep 27, 2010 9:39 am
Mike Hale wrote:No I don't think you can open even one file in ACR without the dialog. But if you skip the File.openDialog line the normal open dialog will appear that will let you select multiple files.
Code: Select allfunction OpenCameraRaw() {
var keyNull = charIDToTypeID('null');
var keyAs = charIDToTypeID('As ');
var adobeCameraRawID = stringIDToTypeID("Adobe Camera Raw");
var desc = new ActionDescriptor();
var overrideOpenID = stringIDToTypeID('overrideOpen');
desc.putBoolean(overrideOpenID, true);
var returnDesc = executeAction(charIDToTypeID('Opn '), desc, DialogModes.ALL);
return (returnDesc.hasKey(keyAs) && returnDesc.hasKey(keyNull));
}
Hi,
Is this mean't to be a .js or .jsx file.
I'm new to this and would like to use it and understand what it can do.
BTW its great to see the forum updated haven't be to this forum for a while well done.
Cheers,
Code: Select allfunction OpenCameraRaw() {
var keyNull = charIDToTypeID('null');
var keyAs = charIDToTypeID('As ');
var adobeCameraRawID = stringIDToTypeID("Adobe Camera Raw");
var desc = new ActionDescriptor();
var overrideOpenID = stringIDToTypeID('overrideOpen');
desc.putBoolean(overrideOpenID, true);
var returnDesc = executeAction(charIDToTypeID('Opn '), desc, DialogModes.ALL);
return (returnDesc.hasKey(keyAs) && returnDesc.hasKey(keyNull));
}
Hi,
Is this mean't to be a .js or .jsx file.
I'm new to this and would like to use it and understand what it can do.
BTW its great to see the forum updated haven't be to this forum for a while well done.
Cheers,