lua-scripts icon indicating copy to clipboard operation
lua-scripts copied to clipboard

Bz kevin open in prog 1

Open BzKevin opened this issue 6 years ago • 1 comments

Add OpenInProg script, modify system utility as needed to support "Open Each" behavior

Script adds a configurator that enables the user to configure multiple programs, and specify what controls should be generated for each program: Open All - Attempts to open all selected Raw files in the program in a single call Open Each - Attempts to open each of the selected Raw files in the program with a unique call per image Export All - Exports images to selected folder then attempts to open them all in the program

All configuration data is saved real-time and loaded at startup. More programs can be added and controls for the new programs generated via the configurator, so a restart of dt is not necessary. Programs can be removed and they will not be auto-loaded on the next startup.

Open Each behavior required modifications to the system file. dsys.external_command() now takes an optional second parameter that enables 'no_wait' behavior. The batch file is modified to exit immediately after executing the specified command, thus allowing multiple back-to-back commands to fire. This "no_wait" behavior was only implemented for windows based systems, though it was done in such a way that all existing usages of dsys.external_command() are unaffected by this change.

BzKevin avatar Mar 21 '19 17:03 BzKevin

Potential Issues:

  1. "Open Each" behavior required modifications to system file. I did this only for Windows, so "Open Each" may not work as desired on MacOS and Linux, I don't know (it probably doesn't).
  2. Currently does not support user-entered arguments

EDIT: removed note about translations as that feature has now been implemented

BzKevin avatar Mar 21 '19 17:03 BzKevin