Using the iTunes Scripting Bridge interface, I need to fetch a particular iTunesTrack by its persistentID. I closely examined the header file produced sdp/sdef but it looks like there is no method in the existing interface for performing any kind of query for a track based on any parameter. The next idea I had was to enumerate all of the tracks examining each for a match.
The implication is that this would be slow; the larger the target library the worse the performance. I'm wondering if anyone has a proven solution to this problem that doesn't involve examining every track returned from the scripting bridge, one at a time?
At get a specific track in itunes via ScriptingBridge, Arr MiHardies states that he came up with a solution and would post it but apparently, he never got around to it.