Adobe Bridge scripting (javascript) and Camera Raw : jpg, dng, raw formats
Hello !
Do you know how to open an image with Camera Raw with Adobe Bridge javascript scripting ?
I manage to :
- target Bridge application,
- get a list of all the .jpg images inside the folder "/Users/input_directory" (i'm using a Mac),
- select one image in the list (here the second image),
- display the image in a new document
- select the thumbnail that corresponds to the file
The code is below :
#target bridge-4.0;
var files = Folder("/Users/input_directory/").getFiles("*.jpg");
var file_test = files[2];
var doc = new Document(file_test);
var selectedThumbnails = app.document.getSelection();
var thumb = selectedThumbnails[0];
Do you know how i can edit the image using Camera Raw by scripting, and then export it (in raw, dng or another format) ?
Documentation about Adobe Bridge can be downloaded here : https://console.adobe.io/downloads/br
In JavaScript SDK samples, there are 2 files :
- SnpInspectMetadata.jsx
- SnpModifyMetadata.jsx
Does these files do the same thing than Camera Raw ?
In Adobe Bridge 2021 JavaScript Reference.pdf, there is an option called OpenInCameraRaw but i don't know how to use it in the script. It is in the thumbnail part ?
Another documentation about XMP metadata is avalaible here : https://javascript-tools-guide.readthedocs.io/scripting-xmp/accessing-the-xmp-scripting-api.html
Thank you in advance !
