Phtoshoshop CS saving EPS with options ...

Hi there,

I am working on a (well maybe lame) script which should tell photoshop to open one file, resize it to a fixed size and the save it in the same place as Photoshop EPS.

Everything works well except the thing with saving. I tell Photoshop to save with 8 bit Preview and JPEG compression but I always get the default options (1 bit preview and binary).

Did anyone experience something like that ?

Here is my script:

tell application “Finder”
set GedroppterOrdner to choose folder with prompt “Bitte wählen”

set Dateien to every file of GedroppterOrdner

set Anzahl to the count of Dateien

get item 1 of Dateien

repeat with i from 1 to Anzahl
	
	set curDoc to item i of Dateien as string
	
	with timeout of 100 seconds
		
		tell application "Adobe Photoshop CS"
			activate
			open file curDoc
				
			
			set ImgSizeX to width of the current document as pixels
			set ImgSizeY to height of the current document as pixels
			
			set XSize to width of the current document
			set YSize to height of the current document
			
			
			if XSize ? YSize then
				-- Querformat
				resize image the current document width 1800 as pixels resolution 304.8
				set ImgSizeYnew to 0
				set ImgSizeYnew to height of the current document as pixels as real
				if ImgSizeYnew ? 1800 then
					resize image the current document height 1800 as pixels resolution 304.8
				end if
			else
				
				resize image the current document height 1800 as pixels resolution 304.8
				set ImgSizeXnew to 0
				set ImgSizeXnew to width of the current document as pixels as real
				if ImgSizeXnew ? 1800 then
					resize image the current document width 1800 as pixels resolution 304.8
				end if
				
				
			end if

save the current document in file curDoc as Photoshop EPS with options {embed color profile:false, encoding:maximum quality JPEG, preview type:eight bit Mac OS}

			close the current document
		end tell
		
	end timeout
	
end repeat

end tell
[/b]

I has the same problem… but i found it :wink: