scripting Photoshop batch process

I am trying to script the batch functionality within Photoshop, but I keep getting an error when I run. Can someone tell me what I am doing wrong?

Thanks in advance.


set thePath to (path to desktop as string) & "new script:test:"
set theFileList to (list folder thePath without invisibles)

tell application "Adobe Photoshop CS2"
	activate
	set myOptions to {destination:save and close}
	batch "Proofs" from files theFileList from "eMotion Actions" with options myOptions
end tell


Little more info. Apparently theFileList is just the file names and not the entire path to the file and Photoshop doesn’t think the source file exists. That might be the entire problem.

What do you think?