on run argv - pass itunes track property

I’d like to have an applescript that I can call from the commandline like this:

  trackProperty.applescript "album artist"

and then in my applescript instead of having a line

set foundProperty to (get album artist of t)

have something like

set foundProperty to ( get trackProperty of t)

The idea being that the script would be able to get any property, allowing things like

trackProperty.applescript “artist”
trackProperty.applescript “album”
trackProperty.applescript “album rating”

I’m getting the parm I’m passing fine -

if (count of argv) is 1 then
set trackProperty to item 1 of argv
log ("Looking for " & trackProperty)

displays
Looking for album artist

but

set myProperty to (get trackProperty of t)

gets a descriptor type mismatch.

I tried various combinations of set trackProperty to item 1 of argv as property or as item but haven’t hit on the right way - and google isn’t helping today.

What am I missing?

Thanks in advance.

Well, this does what I want but it is less elegant than I hoped…

                    if trackElement is "album artist" then set myElement to (get album artist of t)
                    if trackElement is "album" then set myElement to (get album of t)
                    if trackElement is "artist" then set myElement to (get artist of t)
                    etc. etc. etc.
                    log (myElement)