getting file reference of iTunes track with location equal to x

My code is.
Im trying access the information stored in the iTunes library, of the selected file in Finder.

tell application "Finder" to set theLocation to (selection) as alias
tell application "iTunes" to get name of every track in playlist 1 whose location is equal to theLocation

but I get the error.

“iTunes got an error. A descriptor mismatch occurred.” :mad:

http://dougscripts.com/itunes/2010/12/get-a-track-reference-from-a-file-path/