"Open With" input box to type the value.

Older bugs which are supposed to be fixed in 0.84. *** Please try to reproduce your bug and confirm the bug fix. ***

Moderators: XnTriq, helmut, xnview, Dreamer

FKCapitalism2
Posts: 270
Joined: Sun Apr 23, 2023 5:14 am

"Open With" input box to type the value.

Post by FKCapitalism2 »

For use with ExifTool for instance i want to tag series of images with EXIF ImageDescription tag, i select images then right click Open With > select line that i use to populate image description tag with ExifTool.

Problem is that to put new value inside image description i have to always go trough Configure programs menu to change actual command line, which is very slow.

Code: Select all

-overwrite_original -progress -ImageDescription="Hello World!"

Would be so much faster if you allow to specify variable trough popup box.

Code: Select all

-overwrite_original -progress -ImageDescription="{%input_box}"
Then when running command XnView MP shows input box where i type description of the image and it will populate the value of input box instead of {%input_box} and execute command.

For instance you enter New Years Eve 2022, so following command will exectue

Code: Select all

-overwrite_original -progress -ImageDescription="New Years Eve 2022"



Another use case could be to query certain EXIF tag from image

Code: Select all

-{%input_box} -K
After you enter ImageWidth to text box, following command will execute.

Code: Select all

-ImageWidth -K
User avatar
michel038
XnThusiast
Posts: 1387
Joined: Tue Sep 27, 2016 8:18 am
Location: France

Re: "Open With" input box to type the value.

Post by michel038 »

I support this suggestion.

Perhaps this example would work :
Name : : Program : : Parameters
Look_for_folder : : cmd : : Dir D:\Photos /s /ad /b | find /i "(%input_box)"

Enter a word in the input box, and this CMD script will look for folder names in D:Photos containing this word....
User avatar
xnview
Author of XnView
Posts: 44761
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: "Open With" input box to type the value.

Post by xnview »

See issue for current status and some details.
Pierre.
User avatar
xnview
Author of XnView
Posts: 44761
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: "Open With" input box to type the value.

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.6.3. Please check and confirm the bug fix here.
%input%
Pierre.
LuNik
Posts: 31
Joined: Thu Aug 04, 2022 8:24 am

Re: "Open With" input box to type the value.

Post by LuNik »

This would be a great feature but I can't get it working (xnView MP 1.63 on Windows 11) ...
How is it implemented? Is it {%input_box}???

Best regards
Ludger
User avatar
michel038
XnThusiast
Posts: 1387
Joined: Tue Sep 27, 2016 8:18 am
Location: France

Re: "Open With" input box to type the value.

Post by michel038 »

I tried %input%

The input box opens, but my only try was in a cmd command, and it didn't work.

I need to do some more tests ...
LuNik
Posts: 31
Joined: Thu Aug 04, 2022 8:24 am

Re: "Open With" input box to type the value.

Post by LuNik »

Bonjour Michel,
I tried %input% (without { }) and this worked!

For the test I configured an entry with Exiftool as the program and %input% -K as the argument. Then I used this entry with Open with ... and entered -software="Test" at the prompt of the input box. After doing this I checked the Exif tags of that file and the EXIF tag software was set to Test.

So it seems to work fine.

Best regards
Ludger
LuNik
Posts: 31
Joined: Thu Aug 04, 2022 8:24 am

Re: "Open With" input box to type the value.

Post by LuNik »

Bonjour Pierre,
where can I find some documentation on changes/new features you implemented?

If Michel hadn't given the tip to use %input% to prompt for an input I havn't had the chance to try and use it. Then it's just guessing ...
The pages you linked to didn't give any further info.

Nevertheless, thanks for implementing this great feature and best regards
Ludger