Originally posted by mr_sonicblue:
<STRONG>I'm trying to do the following (with iTunes):
set sub_tracks to tracks where album is in {"Album 1", "Album 2"}
but AppleScript turns it into
set sub_tracks to tracks where {"Album 1", "Album 2"} contains album
which is apparently illegal.
Anything I can do?</STRONG>

...in your title you said "whose" but in your text you said "where"? Anyways, it seems that scripting with iTunes is
seriously flawed. i.e. "is in" doesn't seem to work. Also you need to define which playlist the track is from. This is messy but should work:
tell application "iTunes"
tell playlist 1
(
every track
whose album
is "Album 1") & (
every track
whose album
is "Album 2")
end tell
end tell
Album is a property of track, so you have to get the property of the class. Not "where" it is.
property of every class whose property is/contains/starts with ""/{}