How do I copy the location of a track to the "Comments" section in iTunes? I dont understand why this is not working. If anybody knows how to resolve this issue:


tell application "iTunes"
  copy location of track 1 of playlist "Test" to Comments
end tell



Applescript does now show an error but when I see in iTunes, the "Comments" field is still empty.

Thanks!
Because you copy the location to the Comments variable.

Here's how to put the location in the comment tag.


tell application "iTunes"
  tell track 1 of playlist "Test" to set comment to (its location as text)
  -- or set comment  of track 1 of playlist "Test" to (get location of track 1 of playlist "Test") as text
end tell