Save as Photoshop 7.0

If I have several files open at once, a dozen or so, I would like a script that will save and them all as pdf’s and close the file. I don’t have any idea how to start this and haven’t had much luck in playing around with it. Its from a sheetfed scanner that scans each page as a separate document into photoshop.

This is Photoshop 7.0 and OS 10.3.9

Thanks for your help.

planet:

Photoshop 7.0 is essentially unscriptable unless you go ahead and work within its own system of Actions. That may help you out.

You may also consider using a different scanning software. I use VueScan from Hamrick Software because it is totally automatic, and I scan a lot of slides. I just set it up, it scans them and saves them in the proper folder(s) under the proper formats and I go off and do something else. No need for Photoshop at that point at all. AFter scanning a bunch of files, you can open them and work on them later.

Photoshop 7.0 is actually pretty scriptable - as long as you’ve downloaded and installed the Photoshop 7.0 Scripting plug-in. (Quite why Adobe didn’t ship this with the app is a bit of a mystery.) Once you have the plug-in, the following suggestions (along with a whole bunch of other stuff) should work…

To save the documents in the same folder as the original (non-pdf) files:

tell application "Adobe Photoshop 7.0" to repeat while (count documents) > 0
	tell current document
		save in file path as Photoshop PDF
		close
	end tell
end repeat

To save in a different folder:

set f to (choose folder) as Unicode text
tell application "Adobe Photoshop 7.0" to repeat while (count documents) > 0
	tell current document
		save in (f & name as file specification) as Photoshop PDF
		close
	end tell
end repeat