01. Use code tags when you post code, please
02. There are probably various issues with what you posted
a.) Typing error on your run... line (the closing parenthesis)
b.) Enclosing the command into single quotation marks is a good idea
but will fail miserably because variables inside it will
NOT be resolved any more
c.) You don't separate multiple images via "," when called from a command line
d.) After fixing that error there is a chance that you're using a 64-bit OS?
In that case you may suffer from file system redirection
E.g.: Execute this
Code: Select all
$result = runret("convert");
text $result;
Do you get something like
A filesystem must be given
instead of the long output of the imagemagick convert utility?
If yes, call it with an explicit path!
Showing both ways (runret/run):
Code: Select all
$var_file = <get SelectedItemsPathNames '" "'>;
$result = runret("""C:\Program Files\ImageMagick-6.7.5-Q16\convert.exe"" ""$var_file"" -append ""<curpath>\merged-vertical.jpg""");
// run """C:\Program Files\ImageMagick-6.7.5-Q16\convert.exe"" ""$var_file"" -append ""<curpath>\merged-vertical.jpg""";