Assigning a Photoshop action to a hot folder

Hi everyone,

I’m hoping someone here can enlighten me.
I am trying to do something basic here, which works with SL and CS3 and CS5, but now no longer works with Lion and CS5.5.

I have a hot folder on my desktop. Every time I copy a jpg file in there, I would like to open it up in Photoshop CS5.5, apply an action (to resize, print, and close the jpg). After, move this file to a “done” folder.

This is my script:

on adding folder items to thisFolder after receiving theseFiles
	tell application "Finder"
		-- Make sure sub folder exists
		if not (exists folder "_DONE" of thisFolder) then
			set doneFolder to make new folder at thisFolder ¬
				with properties {name:"_DONE"}
			set doneFolder to folder "_DONE" of thisFolder as alias
		end if
		-- Get the file list
		set theJPGFiles to every file of doneFolder as alias list
	end tell
	repeat with thisFile in theJPGFiles
		-- Coerce each alias to string
		set thisFile to thisFile as string
		tell application "Adobe Photoshop CS5.1"
			open alias thisFile showing dialogs never
			tell current document
				-- action and set name, case sensitive
				do action "Print" from "Smaku Actions"
			end tell
		end tell
		tell application "Finder"
			-- move .jpg file in print folder to _DONE folder
			move thisFile to folder doneFolder
		end tell
	end repeat
end adding folder items to

It seems like it should be fine, but it doesn’t open up Photoshop, and the jpg simply sits in the hot folder.
I searched quite a few places but it seems like nobody has tried this on Lion yet.
Is there something I am missing?

Any input would be much appreciated.

Thanks in advance.

		set theJPGFiles to every file of thisFolder as alias list

This worked for me under 10.6

Thanks for trying. Yes it does work in 10.6 I know. But I recently upgraded to 10.7 and the script no longer works. I was hoping someone here would have more experience with 10.7 than I do as I’m sure it’s probably something really easy to fix. Oh well!