Export placed image from InDesign CS3

The users copies and pastes an image from Photoshop into InDesign so there is no path to an image, it is embedded within the file. Is there any means to export/save/move that image using AppleScript? I can get the properties of the image but I can’t seem to get the image itself.


tell application "Adobe InDesign CS3"
	tell front document
		set graphiclist to all graphics of page 3
		
		repeat with g from 1 to count of every item of graphiclist
			set thisimage to item g of graphiclist
			return properties of thisimage
		end repeat
	end tell
end tell


Properties:

{absolute rotation angle:0.0, absolute horizontal scale:100.0, actual ppi:{72.0, 72.0}, absolute shear angle:0.0, absolute vertical scale:100.0, effective ppi:{72.0, 72.0}, image rendering intent:use color settings, profile list:{“Adobe InDesign Default RGB”, “Adobe RGB (1998)”, “Apple RGB”, “ColorMatch RGB”, “ProPhoto RGB”, “sRGB IEC61966-2.1”, “Camera RGB Profile”, “CIE RGB”, “Cinema”, “e-sRGB”, “G520_091005”, “Generic RGB Profile”, “HDTV (Rec. 709)”, “NTSC (1953)”, “PAL/SECAM”, “ROMM-RGB”, “SDTV NTSC”, “SDTV PAL”, “SMPTE-C”, “xxxxxxx_1”, “Wide Gamut RGB”, “Cinema”}, id:488, image type name:“”, overridden:false, flip:none, profile:“Embedded”, associated XML element:nothing, applied object style:object style id 128 of document “tt_050110.indd” of application “Adobe InDesign CS3”, space:“RGB”, absolute flip:none, geometric bounds:{6.444444444444, 10.0, 10.5, 16.5}, graphic layer options:graphic layer options of image id 488 of rectangle id 491 of page id 334 of spread id 328 of document “tt_050110.indd” of application “Adobe InDesign CS3”, image IO preferences:image IO preferences of image id 488 of rectangle id 491 of page id 334 of spread id 328 of document “tt_050110.indd” of application “Adobe InDesign CS3”, rotation angle:0.0, nonprinting:false, overridden master page item:nothing, local display setting:default, shear angle:0.0, parent:rectangle id 491 of page id 334 of spread id 328 of document “tt_050110.indd” of application “Adobe InDesign CS3”, clipping path:clipping path of image id 488 of rectangle id 491 of page id 334 of spread id 328 of document “tt_050110.indd” of application “Adobe InDesign CS3”, horizontal scale:100.0, index:1, item link:nothing, object reference:image id 488 of rectangle id 491 of page id 334 of spread id 328 of document “tt_050110.indd” of application “Adobe InDesign CS3”, label:“”, vertical scale:100.0, text wrap preferences:text wrap preferences of image id 488 of rectangle id 491 of page id 334 of spread id 328 of document “tt_050110.indd” of application “Adobe InDesign CS3”, visible bounds:{6.444444444444, 10.0, 10.5, 16.5}, content transparency settings:content transparency settings of image id 488 of rectangle id 491 of page id 334 of spread id 328 of document “tt_050110.indd” of application “Adobe InDesign CS3”, fill transparency settings:fill transparency settings of image id 488 of rectangle id 491 of page id 334 of spread id 328 of document “tt_050110.indd” of application “Adobe InDesign CS3”, transparency settings:transparency settings of image id 488 of rectangle id 491 of page id 334 of spread id 328 of document “tt_050110.indd” of application “Adobe InDesign CS3”, stroke transparency settings:stroke transparency settings of image id 488 of rectangle id 491 of page id 334 of spread id 328 of document “tt_050110.indd” of application “Adobe InDesign CS3”}

figured it out:

export thisimage format “JPEG” to ((path to desktop) & “myImageTest2.jpg” as string)

try this

tell application "Adobe InDesign CS3" to unembed item link of image id ImageID of active document to TempFolder

You have to specify your particular image (I used “id” property) and folder where to save the image