This script Add-In will make Directory Opus ask you to confirm before opening more than X (configurable, 20 is default) selected items by keyboard Enter key.
I was inspired to make this script Add-In when it happened that I had about 200 high-resolution HD images selected and accidentally pressed Enter (workflow sequence derailed) and then chaos ensued: IrfanView (fastest image viewer for Windows) instances started multiplying and soon computer became unresponsive (mouse froze) from so much load (RAM was quickly filled and paging-fest started) for several long minutes (I didn’t want to reset the computer so I waited).
Now this kind of things shall never happen again!
- download ConfirmMultiopen.js.txt (attachment below)
- in your Directory Opus go to Settings > Preferences… then Toolbars > Scripts
- now simply drag & drop downloaded ConfirmMultiopen.js.txt to the Preferences window, and that’s it!
There is nothing special you need to do, after installation this Add-In is immediately active. See Changing Settings below to configure it to your needs.
You can configure this Add-In by going to Settings > Preferences… then Toolbars > Scripts and then selecting Confirm multi-open Add-In in the list and clicking its Configure button.
Threshold setting: for example if threshold is 20 you’ll get prompted to confirm (screenshot above) in the event that more than 20 selected files/folders are to be opened at once. You can set it to any value, even 0.
Excluded extensions setting: list of name endings (you are not limited to pure extensions) which will not count toward the threshold limit (remove the example extensions from the list before adding your real ones).
Focus button setting: lets you change which button (Proceed or Cancel) is to be focused when confirmation prompt is triggered. Default is Proceed so when confirmation dialog pops-up you can just press Enter again to proceed.
You can manage Add-Ins in Directory Opus Preferences; Settings > Preferences… then Toolbars > Scripts.
Download Version 1.1 - Added “Excluded extensions” feature. Opus version 11.10.2 or higher is required.
ConfirmMultiopen.js.txt (9.76 KB)