Using the following code:
tell application "Finder" to reveal every item of theFiles
Works when theFiles contains a single file, but when it contains multiple files, I get:
error "Finder got an error: AppleEvent handler failed." number -10000
What am I doing wrong? I simply want to highlight a list of files in Finder.