addendum to iTunes scripting
addendum to iTunes scripting
- Subject: addendum to iTunes scripting
- From: Stephen Schaefer <email@hidden>
- Date: Mon, 16 Feb 2004 03:45:14 -0500
Sorry to not have added this in the last post, I just decided to take a
stab at it based on what I've read. Hopefully what I said in the last
post will clarify what I'm trying to do with this snippet and someone
can point out to me what I'm doing wrong (wrong terms, wrong order,
etc.). When I try to compile it I get the error "Expected expression
but found end of line." I know that sounds really simple, but I don't
know how to correct it because I'm a newbie to Applescript and
programming. here's the snippet:
tell application "iTunes"
if playlist "Last 1 day" contains track and
if playlist "Last 2 days" contains track then
set rating of track to 100
else if playlist "Last 3 days" contains track then
set rating of track to 100
else if playlist "Last 4 days" contains track then
set rating of track to 100
else if playlist "Last 5 days" contains track then
set rating of track to 100
end if
end tell
sps
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.