Ok, I have a bit of a bizarre problem. I wrote a script which compares the width/height to see which is greater (to determine if it is a horizontal image or a vertical image).
I was going to do a screen recording thru QuickTime to show my results and the width and height variables return (null) when the script is run, but ONLY while QT is running as well.
Does anyone have any insight to why this is happening or be able to suggest another way of doing the same thing?
The code is below, although I don’t think that’s where my problem lies.
set imgHeight to (do shell script "/usr/bin/mdls -name kMDItemPixelHeight " & (quoted form of theFile3) & "| /usr/bin/awk -F\" = \" '{print $2}'")
set imgWidth to (do shell script "/usr/bin/mdls -name kMDItemPixelWidth " & (quoted form of theFile3) & "| /usr/bin/awk -F\" = \" '{print $2}'")