New release in the
first post...
Change Log
- v2.0 - 2015-03-31 15:00z
- Adds global for overriding filter configuration.
- Separates showing preview from the action taken on selected images.
- Adds scripts for various actions.
- Changes default action to showing a menu. To get the old behavior use the select script:
Code: Select all
Load 'HTMLImagePreview', 'select', 'f';
- Changes menu order and access keys.
------------------
klownboy wrote:TheQwerty wrote:Not possible.
Oh well, thanks TheQwerty. No chance for executing the Windows default action either I assume?
Not from the preview window but with v2.0 the showing of previews has been separated from the action taken on the selected items. So you can now do something like:
Code: Select all
"Open Images"
Load 'HTMLImagePreview', 'showPreview', 'f';
Global $G_RESULTS;
if ($G_RESULTS != '') {
$app = 'C:\Path\To\Program.exe';
OpenWith $app, 's', $G_RESULTS;
}
klownboy wrote:In the change log you mention, "◦Adds global for calling scripts to specify images." Does that mean I should be able to specify a global for "$G_FILTERS = *.gif" to only show gif files in a calling script .
No.. it meant you could set the global $G_IMAGES to a list of images to display in the preview and the script would show those images without applying any filtering.
As of v2.0 there's also the possibility to override the configured filters by setting the global variable $G_FILTERS_OVERRIDE.
Code: Select all
"Show JPGs, GIFs, and PNGs in Images Paper Folder"
Global $G_IMAGES = FormatList(PaperFolder('Images',,<crlf>,'r'), 'fdents', <crlf>, "*.jpg<crlf>*.gif<crlf>*.png");
Load 'HTMLImagePreview', 'showPreview', 'f';
"HTML Image Preview: Select from GIFs"
Global $G_FILTERS_OVERRIDE = '*.gif';
Load 'HTMLImagePreview', 'select', 'f';
"HTML Image Preview: Archive PNGs & JPGs"
Global $G_FILTERS_OVERRIDE = '*.png;*.jpg';
Load 'HTMLImagePreview', 'archive', 'f';