I’m trying to get all tracks under a certain directory… so I try something like this:
tell application "iTunes"
tell source "Library"
tell playlist "Library"
set mytracks to file tracks whose location starts with "Macintosh HD"
end tell
end tell
end tell
But I get “A descriptor type mismatch occured.”
But this works:
tell application "iTunes"
tell source "Library"
tell playlist "Library"
set mytracks to file tracks whose artist starts with "Kylie"
end tell
end tell
end tell
So what’s the difference? And any suggestions on how to get it to work?
location is an alias, not a string. I don’t know the exact construct that will work, but hopefully this will put on you the right track (no pun intended).