script Illustrator CS to Illustrator 10

Hi All,

I need a script to save Illustrator CS file into Illustrator 10.

More clear, I have so many files of Illustrator CS version in a folder. Now I want to convert all those files in Illustrator 10.

Is it possible, if yes please guide me how can I do it.

Thnaks in advance.
Rajeev

macrajeev,

Here is what I have.

tell application "Finder"
	set thePath to choose folder with prompt "Choose destination folder."
	set destPath to thePath as string
	set fileName to "NewFile"
	set newDestPath to destPath & fileName & ".ai"
	tell application "Illustrator CS"
		activate
		save current document in newDestPath as eps with options {class:EPS save options, compatibility:Illustrator 10}
	end tell
end tell

PreTech

Model: G5 dual 1.8
AppleScript: 2.1
Browser: Safari 125.12
Operating System: Mac OS X (10.4)

Model: G5 dual 1.8
AppleScript: 2.1
Browser: Safari 125.12
Operating System: Mac OS X (10.4)