Page 1 of 1

Custom arguments/parameters for command buttons

Posted: Mon Jan 14, 2019 9:53 pm
by Programie
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.

Re: Custom arguments/parameters for command buttons

Posted: Tue Jan 22, 2019 5:35 pm
by m.Th.
+1

Easy to implement.

For placeholders I suggest to use the standard DOS prefix, that is %
So we have:

%current_folder, %current_file etc.

Re: Custom arguments/parameters for command buttons

Posted: Sat Feb 16, 2019 5:10 pm
by xnview
you can add in your xnview.ini, OpenWithParam=

Re: Custom arguments/parameters for command buttons

Posted: Sat Feb 16, 2019 6:23 pm
by Programie
xnview wrote: Sat Feb 16, 2019 5:10 pmyou can add in your xnview.ini, OpenWithParam=
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;
How to pass a custom argument to the command to execute together with the currently opened file/folder?

Re: Custom arguments/parameters for command buttons

Posted: Sun Feb 17, 2019 9:14 am
by xnview
My apologies, yes will be good to be able to add parameters

Re: Custom arguments/parameters for command buttons

Posted: Tue Aug 20, 2019 7:04 am
by xnview
See issue for current status and some details.

Re: Custom arguments/parameters for command buttons

Posted: Tue Sep 17, 2019 10:19 am
by xnview
This problem is supposed to be fixed in XnView MP 0.94. Please check and confirm the bug fix here.