If you haven't visited Doug's Applescript for iTunes
I'd suggest you start there. Lots of illustrations on how to script iTunes.
The "comprehensive" list of commands is in the iTunes dictionary (via script editor). I put "comprehensive" in quotes because the dictionary doesn't really do much in the way of showing you how to use the commands.