Using Shell Command to Run ImageMagick-- Silently
Posted: Fri Jan 09, 2009 6:59 am
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
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