Skip to main content
Legend
September 21, 2018
Question

Setting CameraRaw's Workflow options without user interaction

  • September 21, 2018
  • 2 replies
  • 906 views

This is a follow up to a question I had two years ago, and it did not get an answer.

We have an automatization project, where the correct workflow options setting in the Camera RAW plug-in is crucial. The project is macOS-exclusive, which means that Applescript (and with that UI scripting) is available. Also, the workflow file is installed in the according place in the User Library (~/Library/Application Support/Application Support/Adobe/Camera RAW/Workflow/).

With user interaction, it is no problem, we have the user click on the "link" between the Save Image… and the Open Image buttons at the bottom of the window.

Knowing that the Camera RAW plug-in is not really open to automation, using UI Scripting is kind of the obvious. The problem is that, according to UI Browser (which is reliable in finding elements accessible to UI Scripting), this active element (looking like a hyperlink) is NOT accessible. Interestingly, the Workflow Options dialog, which opens when you click on that element, is fully accessible.

Ideally, the workflow would be set at the time when we install our solution (using an installer, created for convenience sake with Packages.app). If that is not possible, it would be acceptable to load it at runtime (we do that with the save options when saving a DNG using the Camera RAW plug-in, so we are used to that).

So, two questions:

1. How can that Workflow Options dialog be accessed without user interaction?

2. Where is the information about the current Workflow Option stored (most likely in an plist, but which one?)

Any hint is highly appreciated.

Thanks in advance.

This topic has been closed for replies.

2 replies

Legend
September 21, 2018

As far as I know, you can set any parameters for workflow for ACR when opening a file (with or without opening the ACR window). Use the ScriptListener plug-in to find out the workflow parameters you need. After such opening of the file, all subsequent files opened via ACR without specifying new workflow parameters will be opened with new parameters that you specified when opening the file with the parameters specified.

UPD.

No. Now checked. For files without parameters, only the options previously specified manually are used, but not those that were used in the script to open the file with the required workflow parameters.

UPD2.

On Windows, the parameters for ACR 9.x of workflow (and others) are in the registry in the key

[HKEY_CURRENT_USER\Software\Adobe\Camera Raw\9.0] "Preferences"=hex:.....

If you overwrite this parameter, you can set previously saved parameters. You can write to the registry with the help of the script. What to do on the Mac OS I do not know.

JJMack
Community Expert
Community Expert
September 21, 2018

You may want to read the code in Adobe Image Processor script.  I believe the script can open RAW file and use the RAW File's Current RAW settings or let ACR use it defaults.  It can Also open a  RAW file and have ACR open it UI soe uoy can set RAW settinfs.  Then use the RAW settinf you mad wil the rest of the RAW file being process.  It is possible to  Pass settings to some plug-ins and have them bypass displaying their UI just use the settings passed.

However the Image Processor Script is not Applescript uses JavaScripting.  Javascript works on both platforms.

I do not know if the Image Processor script  address ACR work flow settings.  I believe the ones in a RAW file ACR settings would be used or the user current ACR workflow setting would be used.

JJMack