Can't understand error in Photoshop droplet

I keep on getting an error.

Error: Can’t get every file alias

on open {dropList}
tell application “Finder”
open every file of dropList using application file “Adobe Photoshop CS”
end tell

tell application "Adobe Photoshop CS"
	repeat while (count documents) > 0
		tell current document
			do action "C-R-C" from "Action 1"
		end tell
	end repeat
end tell

end open

What happens when you don’t encase dropItems in brackets?

tell application "Finder"
	open every file of dropList using ((application file id "8BIM") as alias)
end tell

Jon

on the first part of you reply I still get the same error

Error: Can’t get alias

and on the second part I don’t get anything. No error no result

PS, In case you all are wanting to know. What I’m trying to do is select a hand full of file and drag-n-drop onto my application and then get my app to work.

Does this open the files in Photoshop?

on open dropList
	tell application "Finder"
		open dropList using ((application file id "8BIM ") as text)
	end tell
end open

– Rob

No, I get an error

Error:An error of type -10814 has occurred.

What is the result of this?

tell application "Finder" to creator type of (choose file with prompt "Select the Photoshop application file.")

– Rob

Hi,

Wasn’t it the every element reference form that doesn’t work on list? But, Finder and other application commands sometimes work on list.

gl,

Hi Kel,

I’ve lost track of which references work and which don’t. I tested the following code and it worked successfully (using BBEdit instead of Photoshop).

on open dropList 
    tell application "Finder" 
       open dropList using ((application file id "8BIM ") as text) 
    end tell 
 end open

Cheers,
Rob