Is the "Parameters" field ignored in the "Configure programs" dialog?

Bugs which are supposed to be fixed in the next test version (not available yet)

Moderators: xnview, Dreamer

laurent45654
Posts: 31
Joined: Sat Dec 21, 2024 6:54 pm

Is the "Parameters" field ignored in the "Configure programs" dialog?

Post by laurent45654 »

I'm on macOS and I'm trying to run an app from XnView MP via the "Configure programs" dialog. I want to pass some argument first, then the name of the file. However, whatever I put in the "Parameters" field is not being passed to the app. All I can see is that the first argument is the image file path, but my own custom argument is not there.

Any idea what might be the issue?

Also is there any documentation for this feature?
laurent45654
Posts: 31
Joined: Sat Dec 21, 2024 6:54 pm

Re: Is the "Parameters" field ignored in the "Configure programs" dialog?

Post by laurent45654 »

Any ideas?
User avatar
xnview
Author of XnView
Posts: 48240
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Is the "Parameters" field ignored in the "Configure programs" dialog?

Post by xnview »

currently parameter on Mac is ignored
laurent45654
Posts: 31
Joined: Sat Dec 21, 2024 6:54 pm

Re: Is the "Parameters" field ignored in the "Configure programs" dialog?

Post by laurent45654 »

Thanks, at least I know I don't need to do more tests with this. Is there any plan to add support for this?

This "Configure programs" feature could be very powerful to customise the app with custom workflows so it's a pity it's a bit limited. For example native support for shell scripts would be brilliant since we could just pass the image path and custom parameters and run all kind of image processing scripts.

Now what I do is create a custom app using Automator that calls a Bash script. But I need to do this for each script, and for each combination of parameters, which is cumbersome.
User avatar
xnview
Author of XnView
Posts: 48240
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Is the "Parameters" field ignored in the "Configure programs" dialog?

Post by xnview »

ok, i'll check to support it
laurent45654
Posts: 31
Joined: Sat Dec 21, 2024 6:54 pm

Re: Is the "Parameters" field ignored in the "Configure programs" dialog?

Post by laurent45654 »

Oh wow, that would be brilliant, thank you for considering it 🙏
User avatar
xnview
Author of XnView
Posts: 48240
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Is the "Parameters" field ignored in the "Configure programs" dialog?

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
User avatar
xnview
Author of XnView
Posts: 48240
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Is the "Parameters" field ignored in the "Configure programs" dialog?

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.11.4. Please check and confirm the bug fix here.
laurent45654
Posts: 31
Joined: Sat Dec 21, 2024 6:54 pm

Re: Is the "Parameters" field ignored in the "Configure programs" dialog?

Post by laurent45654 »

That's great, thank you.

Is there any documentation on how to make it work? I tried this:

I created a bash script like this:

Code: Select all

#!/bin/bash
SIDE="$1"
SIZE="$2"
FILEPATH="$3"
/opt/homebrew/opt/node@20/bin/node /path/dist/commands/crop.js "$SIDE" "$SIZE" "$FILEPATH"
The script works if I manually call it like this:

/path/to/cropTest.sh bottom 100 /path/to/image.png

Then I've added the program like this:

Name: cropTest
Path: /path/to/cropTest.sh
Arguments: bottom 100

With the expectation that it would call this

Code: Select all

/path/to/cropTest.sh bottom 100 /path/to/image.png
But instead nothing happen and there's no error message. Any idea how to make it work?
User avatar
xnview
Author of XnView
Posts: 48240
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Is the "Parameters" field ignored in the "Configure programs" dialog?

Post by xnview »

reopened, its works with .app not script