downsizing all open files in photoshop?

Hi,

I have this script that will downsize the current ps file. Is there a way to modify it to downsize all the photoshop files that are open? I know it is some sort of repeat/end repeat thing. excuse the noobness.


tell application "Adobe Photoshop CS3"
	activate
	
	set docheight to height of documents
	set docWidth to width of documents
	set display dialogs to never
	set thisdoc to current document
	
	tell thisdoc
		resize image resolution 72 width pixels 240.0 height pixels 240.0 resample method bicubic
	end tell
end tell

Hi,

try something like this


tell application "Adobe Photoshop CS3"
	activate
	repeat with oneDoc in (get documents)
		set current document to oneDoc
		tell current document
			resize image resolution 72 width pixels 240.0 height pixels 240.0 resample method bicubic
		end tell
	end repeat
end tell

awsome!!!:slight_smile: