How can I select objects[images], on all pages. And set them to autofit.
If you are using OSX this script would fit everything to fill proportionally
tell application "Adobe InDesign CS6"
tell active document
repeat with x from 1 to count links
set theImage to parent of item x of links
set theFrame to parent of theImage
fit theFrame given fill proportionally
end repeat
end tell
end tell