• 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: Weird iTunes scripting problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird iTunes scripting problem


  • Subject: Re: Weird iTunes scripting problem
  • From: "email@hidden" <email@hidden>
  • Date: Wed, 28 Jan 2009 20:08:28 -0800


On Jan 28, 2009, at 7:51 PM, Michelle Steiner wrote:

I stripped out the parts of the code that are irrelevant to the problem.  Here is what is left:

Track 11 should not be there, and track 12 should.  The name of track 11 is Top 25 Most Played, which is in the exclusion list.

What is going wrong?

 

It worked for me. See what results you get with this verision run with the log open, it might help spot where the problem lies.

HTH

ES

set excludedPlaylists to {"Library", "TV Shows", "Music", "Movies", "Podcasts", "Purchased", "Genius", "Music Videos", "My Top Rated", "Recently Played", "Top 25 Most Played"}
set theList to {}
tell application "iTunes"
repeat with i from 1 to count of user playlists
log i
set playListName to the name of playlist i
set playListIndex to the index of playlist i
if the name of playlist i is not in excludedPlaylists then
copy return to the end of theList
copy i & space & playListIndex & space & playListName to the end of theList
end if
end repeat
end tell
log (items 2 through end of theList as text)
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Weird iTunes scripting problem (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Solved: Weird iTunes scripting problem
  • Next by Date: Creating a rule in Entourage using Applescript.
  • Previous by thread: Solved: Weird iTunes scripting problem
  • Next by thread: Creating a rule in Entourage using Applescript.
  • Index(es):
    • Date
    • Thread