Page 1 of 1

"Open With" input box to type the value.

Posted: Sun Oct 01, 2023 10:27 am
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

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

Posted: Wed Oct 04, 2023 8:45 pm
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....

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

Posted: Thu Dec 07, 2023 2:00 pm
by xnview
See issue for current status and some details.

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

Posted: Tue Dec 12, 2023 2:43 pm
by xnview
This problem is supposed to be fixed in XnView MP 1.6.3. Please check and confirm the bug fix here.
%input%

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

Posted: Thu Dec 14, 2023 4:59 pm
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

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

Posted: Thu Dec 14, 2023 5:37 pm
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 ...

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

Posted: Fri Dec 15, 2023 11:05 am
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

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

Posted: Fri Dec 15, 2023 12:28 pm
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