I'm getting somewhere with AppleScript, although dealing with file paths across LC and AS is, er, 'interesting'

But is there a way to do this (find the pixel width and height of a given image file) natively in LC?
k
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Code: Select all
on mouseUp
answer file "Select image..."
put QUOTE & it & QUOTE into tImage
get shell("sips -g pixelHeight" && tImage)
put last word of it into tHeight
get shell("sips -g pixelWidth" && tImage)
put last word of it into tWidth
answer "Image dimensions:" && tWidth & "," & tHeight
end mouseUp