I´m new to ImageMagick and Scripting in general. I don´t know if this is the right place to ask for help - if not, please feel free to move the thread or delete it.
I am running IM 6.9.7-10_10 on MacOS Sierra, installed via MacPort.
I am currently trying to write an applescript that allows me to compare two images and if they differ copy the 2nd image into the clipboard. My code looks like this at the moment:
Code: Select all
set x to do shell script "/opt/local/bin/compare -metric AE ~/Desktop/TEST1.png ~/Desktop/TEST2.png ~/Desktop/null:"
if x > 0 then
display dialog "copy to clipboard"
end if
Code: Select all
compare -metric AE TEST1.png TEST2.png null:
The question is why the syntax error and how can I get around it? Since I´m only interested in if there is a difference (and not what that difference is) I don´t need a result image. Is it possible to look at the statistic exclusively and avoid creating the result image?
Any help appreciated.
Best regards,
kara