• 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: iTunes Playlist Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iTunes Playlist Script


  • Subject: Re: iTunes Playlist Script
  • From: Matthew Smith <email@hidden>
  • Date: Fri, 18 Feb 2005 10:00:50 +1100

on 18/02/2005 02:16, Jon Wynacht at email@hidden wrote:

> Thanks for the feedback on the script. As for the time error, I just
> wrote it wrong ;-)
>
> I like your script but I like your idea of accessing the smart playlist
> more. How would I access the playlist name? I tried using the actual
> name but that didn't work.

A playlist exists within a source, which could be a library, a library on
shared from another computer, an iPod and several others.

So if your playlist is called "Imports: Last Month" you would need to refer
to the play list as

tell app "iTunes"
  playlist "Imports: Last Month" of source "Library"
end tell

This should be much faster than having AppleScript find all the tracks in
the library which were added in the last month.

You script would be like this:

tell application "iTunes"
    set trackList to every track of playlist "Imports: Last Month" of source
"Library"
    repeat with oneTrack in trackList
        -- do processing here
    end repeat
end tell

--
Matthew Smith


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: iTunes Playlist Script
      • From: Jon Wynacht <email@hidden>
References: 
 >Re: iTunes Playlist Script (From: Jon Wynacht <email@hidden>)

  • Prev by Date: Re: Date handlers
  • Next by Date: Photo ID from iPhoto Import?
  • Previous by thread: Re: iTunes Playlist Script
  • Next by thread: Re: iTunes Playlist Script
  • Index(es):
    • Date
    • Thread