Created
August 31, 2013 04:15
-
-
Save kfriend/6396193 to your computer and use it in GitHub Desktop.
AppleScript: Get image dimensions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on open (filelist) | |
tell application "Image Events" | |
launch | |
repeat with i in filelist | |
set this_image to open i | |
copy dimensions of this_image to {current_width, current_height} | |
-- do stuff | |
end repeat | |
end tell | |
end open |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment