Can you search on a shared iTunes playlist ?

I am trying to search a shared iTunes playlist and get an error on a shared playlist for a search that works fine on the local library. Can you tell me how to get this to work ?
property away_CPU : "iBook Music" -- This is the source name of the shared iTunes playlist we wish to investigate from another machine
So get the CD name
try
set dialogAnswer to display dialog ¬
"Please type the name of the album" buttons {"Find it", "Cancel"} ¬
default button "Find it" default answer ""
if (button returned of dialogAnswer is "Find it") and (text returned of dialogAnswer is not "") then
set disk_name to text returned of dialogAnswer
tell application "iTunes"
set track_list to search playlist "Library" for disk_name only albums
log "Local (" & (count of track_list) & ") -" & track_list
set tracklist2 to search playlist "Library" of source away_CPU for disk_name only albums
log "Remote (" & (count of tracklist2) & ") -" & tracklist2
end tell
end if
on error number -128 -- userCanceledErr
end try
You will need to set the property to the name of you shared playlist.
I get the error:
iTunes got an error: playlist "Library" of source "iBook Music" doesn't understand the search message.

Thank you HD,
You are essentially right. I guess it's a case of seeing what i expected to see and not what was really there. So thanks for making that clear.
I tried what you said. I ran your script and i saw that under "iBook Music" the library is also called "iBook Music"; not "iBook Music's Library" as you suggested.
Thus by replacing the string "Library" with another occurrence of the away_CPU variable in the second search it now works.
Thanks very much
Message was edited by: Guy Facius

Similar Messages

  • Can you have more than one iTunes account with home sharing, Can you have more than one iTunes account with home sharing

    Can you have more than one itunes account at one time with apple tv

    My understanding is that the home sharing is based off of being on the same Wifi.  So if someone brings their laptop to your house and connects to your Wifi and they have home sharing on they can connect so you can see his/her iTunes library on your iTunes. 
    I haven't tried this though.  We have two laptops at home, both using my iTunes account and I can see each other's iTunes library, which I'm guessing is what you're probably doing now.  I'd be interested to know if my thought above is true. 

  • When you are sharing songs through wifi, can those songs be copied to another device?  Can you copy the songs into a playlist?

    When you are sharing songs through wifi, can those songs be copied to another device?  Can you copy the songs into a playlist?

    When you are sharing songs through wifi, can those songs be copied to another device?  Can you copy the songs into a playlist?

  • Can you access and store two itunes libraries on one computer?

    can you access and store two itunes libraries on one computer?

    Welcome to the Apple Community.
    Yes but you may run into issues if you want them both to run iTunes Match or automatic downloads.

  • Can you still use Home Sharing?

         Can you still use Home Sharing?    I have a Mac Mini (10.6.3) a Ipad (3rd Gen.) and a 3rd Gen. Apple TV.  All on the same home network and router. All three have Home Sharing turned on. All with the same account and all with the same password but they don't see each other. Since we're talking about three devices that don't see each other, I figure it must be something in the way I have it setup or Apple did away with the function.
         Can anyone point me in the right direction or shed some light on this problem.
         Thanks
              Ron   (hmbgeno)

    Well I can tell you that Apple did not do away with it because I am still using home sharing. Maybe you should go through this support article.
    Troubleshooting Home Sharing

  • HT1789 How can you rename your iPod in iTunes 11?

    How can you rename your iPod in iTunes 11?
    I am using a Mac and an iPod Nano (the old longer one)

    Double-click the name in the device summary screen to get a cursor, and edit the name. In previous versions of iTunes, you could change the name by clicking it once.

  • Can you share books purchased from itunes with different itunes accounts

    can you share books purchased from itunes with a different itunes accounts

    See if this will work for books as well as music: http://support.apple.com/kb/HT1203

  • TS4147 can you create sub-accounts in itunes?

    Can you create sub-accounts in iTunes?

    I do not believe that is possible any longer. All iTunes accounts are individual accounts.

  • Can you send a code for iTunes and have it still work

    Can you send a code for iTunes and have it still work

    Did you get this in an email from Apple? Are there instructions in the email?
    Typically the way that you redeem a gift card is to go to either the app store or iTunes - go to the featured tab in the app store or the music tab in iTunes - swipe to the bottom of the screen. Tap on Reedem at the bottom and go from there.
    OK. I'm a little dense tonight. Now I get it. Like Meg said, you will know soon enough.
    Message was edited by: Demo

  • Can you have more than one itunes accounts on 1 mac?

    Can you have more than 1 itunes accounts on one mac

    You can do this, but you have to create another user for an Apple ID. Open System Preferences > Users and Groups and select + button to create a new user account

  • How can you search this forum without searching all the other forums

    how can you search this forum without searching all the other forums at the same time which is a big fat waste of time.

    Follow this tip to create a bookmark to a search page that searches only the forum you want or...
    Browse with Firefox and enable this Greasemonkey script, which forces all searches from a sub-forum to be local.

  • Can you watch a DVD on iTunes?

    Can you watch a DVD on iTunes then sync it to your iPod? The iTunes website says you can do this and then use the advance \ convert but I can't figure out how to make it work.

    Is this a Commercial DVD movie that you are talking about? If so the answer is no, you have to use conversion software to rip and convert the content to a format that the iPod supports.

  • Can you have more than one Itunes account on one computer to keep your accounts separate?

    Can you have more than one Itunes account on a computer in order to keep accounts separate when buying music?

    Yes, you can have up to five iTunes Store accounts on any single computer system.
    Regards.

  • Can you buy Lion with a iTunes card?

    Can you buy Lion with a iTunes card?

    Yes. Apple's iTunes, App store, iBookstore and Mac App store all accept credit cards, Paypal and Apple's itunes cards. On the side of the app store, it says account. below it says redeem, there is where you would enter the iTunes cards code and press enter. after that, ENJOY LION!!!!!!!

  • HT2534 can you have more than one itunes account on the same computer?

    can you have more than one itunes account on the same computer?

    Yes. Either create and use separate Windows user accounts, or launch iTunes with the Shift key held down as desired.
    (62377)

Maybe you are looking for