Playground: Using the Evaluator in the Filter Bar

Update 2024-03-16

  • Converted the dropdown to a checkbox dialog. All checked items will be added to the evaluator clause (OR combined).
  • Added two alternative modes of getting shell and custom column values. Now there are the modes A, B, and C. They can be picked in the configuration menu. Which one works best for you?

:information_source: If you use the ExifTool Custom Columns with this script, make sure to let ExifTool create the cache before you apply any quick filter. Otherwise, Opus might hide the files without giving the script a chance to get a list of the files for which it's supposed to generate the cache.


Here's all you need, up to date:

The script

CommandEditQuickFilter.js.txt

The rename preset

GetAnyColumn.orp

The context menu

XML
<?xml version="1.0"?>
<button backcol="none" display="label" label_pos="right" textcol="none">
	<label>Edit QuickFilter with &lt;b&gt;%1&lt;/b&gt;</label>
	<icon1>#newcommand</icon1>
	<function type="normal">
		<instruction>@label:Format(original_label, %headername%)</instruction>
		<instruction>EditQuickFilter HEADERKEY=%headerkey%</instruction>
	</function>
</button>

The configuration button

XML
<?xml version="1.0"?>
<button backcol="none" display="both" label_pos="right" textcol="none">
	<label>Configuration EditQuickFilter</label>
	<tip>Open Configuration Dialog</tip>
	<icon1>#editprefs</icon1>
	<function type="normal">
		<instruction>Prefs SCRIPTS=CommandEditQuickFilter.js*</instruction>
	</function>
</button>
3 Likes