choose folder and open all files



tell application "Finder"
	
	get every file of entire contents of (choose folder) to theFiles
	open theFiles in application "Adobe Photoshop CS3"
	
end tell

I want to store files as the variable theFiles to use later in the workflow.

thanks

set theFolder to choose folder without invisibles

tell application "Finder"
	set theFiles to every file of entire contents of theFolder
	repeat with i from 1 to count of theFiles
		set thisFile to item i of theFiles as alias
		tell application "Adobe Photoshop CS3" to open thisFile
	end repeat
end tell

Cheers,

Craig