I tried the below before & after adding environment variable.
environment methods used were from the following links. used "env" after restarting Terminal to confirm. All methods worked for me.
https://support.apple.com/en-au/guide/t ... 006f8f/mac
https://stackoverflow.com/questions/655 ... s-catalina
https://apple.stackexchange.com/questio ... s-catalina
set my environment variables as follows;
echo 'export nconvert=/Users/matthew/NConvert/nconvert' >> ~/.zshev
echo 'export nconvert=/Users/matthew/NConvert/' >> ~/.zshev
I've tried the following.
- nconvert -wmopacity 7 -wmflag center -wmsize 98 -wmfile "/Users/uName/Desktop/Watermark/Watermark.png" "/Users/uName/Desktop/Test/Web/TTK_VW06 b.jpg"
- ./nconvert -wmopacity 7 -wmflag center -wmsize 98 -wmfile "/Users/uName/Desktop/Watermark/Watermark.png" "/Users/uName/Desktop/Test/Web/TTK_VW06 b.jpg"
- "/Users/uName/NConvert/nconvert" -wmopacity 7 -wmflag center -wmsize 98 -wmfile "/Users/uName/Desktop/Watermark/Watermark.png" "/Users/uName/Desktop/Test/Web/TTK_VW06 b.jpg"
"zsh: command not found: nconvert"
I'm more a graphics designer with some coding knowledge. What I deduce is that the "zsh" shell, does not recognize the command "nconvert". probably need to set "nconvert" so it can recognize it as a command. Even though the environment variable is set it most likely needs to be set some place else or there is another way to set environment variables for command line apps.