• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: addendum to iTunes scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >addendum to iTunes scripting (From: Stephen Schaefer <email@hidden>)

  • Prev by Date: Re: Scripting Airport Connection
  • Next by Date: Re: iTunes scripting - comparing playlists
  • Previous by thread: Re: addendum to iTunes scripting
  • Next by thread: Re: addendum to iTunes scripting
  • Index(es):
    • Date
    • Thread