newbie: fetch a list of songs by criteria

I am trying hard to fight against the beggining of the apple learning curve. let’s see.

I want to figure out a script that fetchs a bunch of songs by a criteria (let’s say, all podcasts downloaded last week) and then have an action executed for all of them (like picking out the artist’s name and calling an automator workflow). I have no idea how to start, could some one enlighten me.

thanks, and a happy snowy december for anyone in the northern hemisphere(or a hot summer for those not).

alexandre

This is all I have time for right now:

tell application "iTunes"
	launch
	get artist of every track in first library playlist whose podcast is true
end tell

As for the checking the time it was downloaded, I think it would be easiest to make a smart playlist (manually, or with AppleScript) that contain all podcasts from the past week (The rule would be: Date Added “ is in the last “ 1 “ weeks).

Also, the list of artist’s might contain the same name more than once. How do you want to handle that?