Newbie Help Exporting as JPEG from Indesign CS 2

Hi,
I am trying to export several pages from a indesign CS 2 document to the desktop as high quality JPEGS.

I would of hoped that this would be a extremely simple script but I just cant get it to work!

tell application "Adobe InDesign CS2"
	export document to desktop file format "jpg type"
end tell

Can anyone help?

Cheers In advance

Tim

Model: G5 Imac
AppleScript: 1.10
Browser: Safari 412.5
Operating System: Mac OS X (10.4)

Model: G5 Imac
AppleScript: 1.10
Browser: Safari 412.5
Operating System: Mac OS X (10.4)

Hi Guys,
Being trying to sort this out by myself for a couple of hours and have managed to come up with this

tell application "Adobe InDesign CS2"
	tell active document
		set myjpg to full name as Unicode text
		export format JPG to myjpg & ".jpg"
	end tell
end tell

But this exports all the pages as Jpegs to the desktop, is there anyway to just export the pages that i want and not all the pages in the document?

Cheers for the help

Tim