I'm an Applescript noob as well, but I figured out on my own!
It's good to know that you can open the iTunes dictionary and browse for things.
Applescript is a strange language, but a lot of it can be guessed from normal English.
Problems with my solution:
- I can't figure out what the location alias is about, so I'm not sure what to enter here.
- For some reason it does work with selection, but not with library playlist.
My code:
tell application "iTunes"
set the_location to location of current track
repeat with this_track in selection
if (get location of this_track) is the_location then
refresh this_track
log "match"
end if
end repeat
end tell