• 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
addendum to iTunes scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Can't set creator type
      • From: Mr Tea <email@hidden>
    • Re: addendum to iTunes scripting
      • From: Michelle Steiner <email@hidden>
    • Re: addendum to iTunes scripting
      • From: Craig Sutherland <email@hidden>
    • Re: addendum to iTunes scripting
      • From: Michael Terry <email@hidden>
  • Prev by Date: Re: 'load script' fails for Mail rule script
  • Next by Date: Re: Scripting Airport Connection
  • Previous by thread: Re: iTunes scripting - comparing playlists
  • Next by thread: Re: addendum to iTunes scripting
  • Index(es):
    • Date
    • Thread