Skip to content

Instantly share code, notes, and snippets.

@kfriend
Created August 31, 2013 04:15
Show Gist options
  • Save kfriend/6396193 to your computer and use it in GitHub Desktop.
Save kfriend/6396193 to your computer and use it in GitHub Desktop.
AppleScript: Get image dimensions
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