Collection of Images in a List

Dear All,
I am using below code for collecting all images in a list, please see below code. My system got hang so I am unable to test the below code. Please check and let me know whether this code is fine or not.


tell application "Adobe InDesign CS3"
set myDoc to active document
tell myDoc
set theList to get list of images
end tell
end tell

Regards,
Poo

Hi,

this code retrieves a list of the file paths of all links (images)


tell application "Adobe InDesign CS3"
	set myDoc to active document
	tell myDoc
		set theList to get file path of links
	end tell
end tell