Hello there. In Windows, using RunRev's Shell command, I've been able to run ImageMagick via command line to perform a simple image conversion:
on mouseUp
put "convert c:\aPicture.jpg c:\aPicture.png" into switchCommand
get shell (switchCommand)
end mouseUp
Btw, I also tried:
on mouseUp
put "c:\imagemagick\convert.exe c:\aPicture.jpg c:\aPicture.png" into switchCommand
get shell (switchCommand)
end mouseUp
Both successfully converted the image. However, whenever I press the button to drive ImageMagick, the black Windows command line window appears for a split-second (on top of the RunRev stack), and then disappears.
Is there a way to either suppress or hide the Windows command line window, so that the user never sees it?
Thank you in advance,
Ron Toledo
Using Shell Command to Run ImageMagick-- Silently
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Hi Ron,
just add this line:
Best from germany
Klaus
just add this line:
Code: Select all
on mouseUp
## This one:
set the hideconsolewindows to true
put "convert c:\aPicture.jpg c:\aPicture.png" into switchCommand
get shell (switchCommand)
end mouseUp
Klaus
Before you call the shell command, use the instruction:
and... well, you can work out what it does 
[edit]Nice simulposting Klaus![/edit]
Code: Select all
set the hideConsoleWindows to true

[edit]Nice simulposting Klaus![/edit]