[AS][Photoshop] Checking if there is any paths or clipping paths

Hey guys,

I would like to determine if there is any paths or clipping paths in the files dropped onto the droplet. Then sort them into different folders. One folder for files with paths and one for without paths. Getting the files to move I think I can manage, but I can’t get checking for the paths to work. Anyone got a clue? This is how far I have got.


on open fileList
	tell application "Adobe Photoshop CS3"
		activate
		
		
		repeat with thisFile in fileList
			open thisFile showing dialogs never
			
			set CountOfPaths to count of path items
			display dialog CountOfPaths
			
		end repeat
		
	end tell
	
end open

There was a discussion on this about a month ago with a solution that eliminates photoshop from the equation: http://bbs.macscripter.net/viewtopic.php?id=26884

Great! Thanks!