Re: addendum to iTunes scripting
Re: addendum to iTunes scripting
- Subject: Re: addendum to iTunes scripting
- From: Craig Sutherland <email@hidden>
- Date: Mon, 16 Feb 2004 07:11:26 -0600
Stephen,
Doug's Applescripts for iTunes <www.malcolmadams.com/itunes/> has a lot
of very helpful scripts to use as examples are as they are. Using well
working scripts and modifying them as you see the need is a great way
to learn scripting.
Craig Sutherland
On Feb 16, 2004, at 2:45 AM, Stephen Schaefer wrote:
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.
_______________________________________________
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.