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 “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)
Looking for album artist
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.