Looking for raster images in Illustrator CS3

I am writing a script that opens a variety of files in Illustrator and then outputs as another filetype. Some of the files are raster art, some are Illustrator files with raster and vector art in them. How do I have Illustrator look at the contents of the file to see if there is a raster image in it?

Levon

Model: Dual 2.3GHz G5
AppleScript: 2.1.1/Script Debugger 4
Browser: Firefox 2.0.0.3
Operating System: Mac OS X (10.4)

Hi Levon,
something like this is very quick and easy!

tell application "Adobe Illustrator"
	set raster_art to count of every raster item of current document
end tell

Hope this helps,
Nik

Worked great, thanks!

Levon