I want to execute a single script with different arguments using the command buttons.
Right now it's just possible to specify the script or application to execute and the currently selected or open file is passed as first argument. But it's not possible to pass additional custom arguments.
Would it be possible to implement passing custom arguments to scripts/applications? Maybe even using some placeholders for the currently open folder, file, etc.
Custom arguments/parameters for command buttons
Moderators: XnTriq, helmut, xnview, Dreamer
Re: Custom arguments/parameters for command buttons
+1
Easy to implement.
For placeholders I suggest to use the standard DOS prefix, that is %
So we have:
%current_folder, %current_file etc.
Easy to implement.
For placeholders I suggest to use the standard DOS prefix, that is %
So we have:
%current_folder, %current_file etc.
m. Th.
- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
- Dark Themed XnViewMP 1.6 64bit on Win11 x64 -
Re: Custom arguments/parameters for command buttons
you can add in your xnview.ini, OpenWithParam=
Pierre.
Re: Custom arguments/parameters for command buttons
I'm not sure whether we are talking about the same thing. The command is configured in the default.bar file instead of the xnview.ini.
The command currently looks like the this:
Code: Select all
_cmd_=Some title;/path/to/my/script;
Re: Custom arguments/parameters for command buttons
My apologies, yes will be good to be able to add parameters
Pierre.
Re: Custom arguments/parameters for command buttons
See issue for current status and some details.
Pierre.
Re: Custom arguments/parameters for command buttons
This problem is supposed to be fixed in XnView MP 0.94. Please check and confirm the bug fix here.
Pierre.