After Upgrade Illustrator CS3 to CS4: crop area and artboards problem

Hello,

after upgrading to Illustrator CS4, I’am running into problems because of my former crop area is converted to an artboard and this artboard gets ignored with its export options for JPG files.

In CS4 I am using to artboards:

  1. to save EPS files, size: 1280 x 800 pt
  2. to export JPG files, size: 1040 x 475 pt. This used to be in CS3 my crop area to guaranty that all output files have the same dimensions.

Unfortunately, the second artboard is ignored. Therefor, my EPS files get the dimensions 1280 x 800 pt - which is correct. But the JPG files don’t get cropped. Their dimensions vary and my export options are ignored.

Can anyone please give me a hint? Thank you very much in advance.
Wish you a merry Yule and happy Hogmanay.

Cheers
Erden


--#save/export the created images with options, re-open Illustrator template file
on exportDocument(myFormat, myNameExtra, mySaveFolder, myRestoreFlag, MATNR)
	tell application "Adobe Illustrator"
		set myOriginalFile to file path of document 1 as alias
		set myNewPath to mySaveFolder as string
		if (myOriginalFile as string) contains ":" then set myNewPath to myNewPath & ":" & MATNR & "." & myFormat
		repeat with myCharNum from (count of characters of myNewPath) to 1 by -1
			if character myCharNum of myNewPath = "." then
				if myCharNum > (count of characters of myNewPath) - 5 then
					get (characters 1 thru (myCharNum - 1) of myNewPath)
					set myNewPath to (characters 1 thru (myCharNum - 1) of myNewPath) as string
				end if
				exit repeat
			end if
		end repeat
		if myNameExtra ≠ "" then
			set myNameExtra to "_" & myNameExtra
		end if
		set myNewPath to myNewPath & myNameExtra
		
		if myFormat = "eps" then          -- output 1240x800 pt due to a rectangle object, filling: white
			activate
			set myNewPath to myNewPath & ".eps"
			set myExportOptions to {}
			set myExportOptions to myExportOptions & {CMYK PostScript:true}
			set myExportOptions to myExportOptions & {save multiple artboards:true}
			set myExportOptions to myExportOptions & {artboard range:2}
			set myExportOptions to myExportOptions & {embed all fonts:true}
			set myExportOptions to myExportOptions & {embed linked files:true}
			set myExportOptions to myExportOptions & {include document thumbnails:true}
			set myExportOptions to myExportOptions & {PostScript:level 3}
			set myExportOptions to myExportOptions & {preview:color Macintosh}
			set myNewDocument to (save document 1 in file myNewPath as eps with options myExportOptions)
			delay 1
			
			if myCheckTecDoc = true then
				activate
				set visible of layWatermark to true
				
				set myNewPath to mySaveFolder & ":BasisTecDoc:" & MATNR & ".jpg"     -- cropped output 1040x475 pt
				set myExportOptions to {}
				set myExportOptions to myExportOptions & {antialiasing:true}
				set myExportOptions to myExportOptions & {artboard clipping:true}
				set myExportOptions to myExportOptions & {save multiple artboards:true}
				set myExportOptions to myExportOptions & {artboard range:1}
				set myExportOptions to myExportOptions & {blur:0.0}
				set myExportOptions to myExportOptions & {horizontal scaling:100.0}
				set myExportOptions to myExportOptions & {matte:true}
				set myExportOptions to myExportOptions & {matte color:{red:255, green:255, blue:255}}
				set myExportOptions to myExportOptions & {optimization:true}
				set myExportOptions to myExportOptions & {quality:100}
				set myExportOptions to myExportOptions & {saving as HTML:false}
				--set myExportOptions to myExportOptions & {vertical scaling:57.692}
				export document 1 to file myNewPath as JPEG with options myExportOptions
				delay 1
			end if
			
			if myCheckESI = true then
				activate
				set visible of layWatermark to false
				
				set myNewPath to mySaveFolder & ":BasisESI:" & MATNR & ".jpg"     -- cropped output 1040x475 pt
				set myExportOptions to {}
				set myExportOptions to myExportOptions & {antialiasing:true}
				set myExportOptions to myExportOptions & {artboard clipping:true}
				set myExportOptions to myExportOptions & {save multiple artboards:true}
				set myExportOptions to myExportOptions & {artboard range:1}
				set myExportOptions to myExportOptions & {blur:0.0}
				set myExportOptions to myExportOptions & {horizontal scaling:100.0}
				set myExportOptions to myExportOptions & {matte:true}
				set myExportOptions to myExportOptions & {matte color:{red:255, green:255, blue:255}}
				set myExportOptions to myExportOptions & {optimization:true}
				set myExportOptions to myExportOptions & {quality:100}
				set myExportOptions to myExportOptions & {saving as HTML:false}
				--set myExportOptions to myExportOptions & {vertical scaling:57.692}
				export document 1 to file myNewPath as JPEG with options myExportOptions
				delay 1
			end if
			
			close myNewDocument saving no
			if myRestoreFlag then open myOriginalFile
		end if
		
	end tell
	set myCheckTecDoc to true
	set myCheckESI to true
	set myNameExtra to ""
	return myNewPath
end exportDocument

I think the jpeg export will use the active artboard if its artboard clipping property is set to true (JPEG export options don’t include save multiple artboards and artboard range).