IDCS4--ViewPDF After Export

Dear All,
I am have created one program for Exporting PDF from IDCS4 using customized joboptions. I am facing a problem for enabling view PDF as true.


				tell active document
					tell PDF export preferences
						set view PDF to true
					end tell
					export format PDF type to (thePath) & (item 2 of argv) & ":" & (item 2 of argv) & ".pdf" using "[High Quality Print]" without showing options
				end tell

Regards,
Poo

Hi

what works for me is putting my export settings before my view settings, so try something like this:
the portion of code below is taken from a working script that I use every day.

export document 1 format PDF type to (_dest & docName & ".pdf") using screenSettings without options
			if modified of active document is true then
				tell active document to save
				close document 1
			end if
			tell PDF export preferences
				set view PDF to true
			end tell
		end tell