• 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
iTunes: scripted loading shared playlists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iTunes: scripted loading shared playlists


  • Subject: iTunes: scripted loading shared playlists
  • From: Jay Koutavas <email@hidden>
  • Date: Mon, 19 Feb 2007 11:39:48 -0500

Title: iTunes: scripted loading shared playlists
I have an application that queries iTunes 7.0.2 for tracks in shared playlists.

In order to get a shared playlist's contents, the shared playlist must first must be selected. Using this Applescript:

tell application "iTunes"
        set the view of the front browser window to playlist "Bob's Share"
end tell

works if the shared playlist has been "loaded", i.e. it was selected at some point by the user on the local machine since iTunes was launched. If the share wasn't loaded (selected), this script fails and gives back an error. Of course, I want to do this via automated scripting without user intervention.

My script can't get the names of unloaded shared playlists directly from iTunes either. If I try:

        name of every source whose kind is shared library

I get back only those shares that are loaded.
 
Question: Is there any way possible to script the loading of shares short of sending a series of down-arrow key codes to iTunes and emulating selecting one play list after another until all have been loaded?

I've gone as far as writing a Bonjour "iTunes share browser" to get a list of available shares, but without a means of saying "load share x" to iTunes, I'm stuck with the time consuming, and error prone feeding of down-arrow key strokes.

Please tell me there is a more elegant way to load a shared playlist?

/Jay
--
--------------------------------------------------------
  Jay Koutavas                     mailto:email@hidden    
  Heynow Software                  http://www.heynow.com
  Windham, New Hampshire, USA
--------------------------------------------------------
 _______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden

  • Prev by Date: How to position a QuickTime movie onscreen
  • Next by Date: Tab position
  • Previous by thread: Re: How to position a QuickTime movie onscreen
  • Next by thread: Tab position
  • Index(es):
    • Date
    • Thread