ITunes can't connect to shared library UNLESS it's manually connected?

this is a problem i've been monkeying with off and on for nearly a year now, but haven't ever found a solution for.
What I am specifically looking for is a way to connect to a shared library on my local network but do so without having to physically click the library to connect it. Everything that I've found has worked after the library has been connected, but I can't find a solution that actually connects to the library.
I've asked doug at doug's applescripts for help... he had no answer.
i've asked hanaan rosenthal (author of a few applescript books) for help.. he had no answer.
i've posted a few times on macscripter.net ( http://macscripter.net/viewtopic.php?id=35511 ) ... nobody had an answer.
i've dug around the apple discussion boards (http://discussions.apple.com/thread.jspa?threadID=2324452) and found similar questions, but there were no satisfactory answers...
both of the following scripts work when the library is already connected but fail when it's not... how can i get it to work every time...
activate application "iTunes"
tell application "System Events"
tell process "iTunes"
get the value of static text 1 of row 17 of outline 1 of scroll area 2 of window 1
end tell
end tell
tell application "iTunes"
activate
repeat with theSource in every source
if name of theSource as text is "MY SHARED LIBRARY" then
set theLibrary to user playlist "MY SHARED PLAYLIST" of theSource
end if
end repeat
tell theLibrary
set shuffle to true
set song repeat to all
end tell
play some track of theLibrary
end tell
any help would be very much appreciated.

this new format has erased my response twice now and is kinda ******* me off. grrrr.
the gist of my previous two posts (they were much better explained/phrased).
THANK you very much.  you very quickly answered a question that I had spent a fair amount of time looking for an answer to.
the code worked beautifully when i ran it by itself, but when i paired it with the rest of the code i wrote for this little project my follow up code never executed...   i'm not sure if this is because of something in the handler/subroutine code or because the whole thing runs as an Automator application.
the edited code isn't as elegant, but it does the job I needed it to.  Thank you very much for that.
tell application "iTunes"
  activate
          set sound volume to 100
          tell front browser window to if minimized then set minimized to false
          tell application "System Events" to tell scroll area 2 of window 1 of process "iTunes"
                    tell (first row of outline 1 whose value of it's static text 1 is "MY SHARED LIBRARY")
                              set b to exists
                              if b then select -- connect
                              delay 2
                    end tell
          end tell
          tell source "MY SHARED LIBRARY" to if exists then
                    tell user playlist "MY SHARED PLAYLIST" to if exists then
                              set shuffle to true
                              set song repeat to all
                              play some track
                    end if
          end if
end tell

Similar Messages

  • My itunes can't connect home sharing

    my itunes can't connect to home sharing even i'm already upgrade it
    but in my other pc it can
    can you tell me how to connect it ?

    Just solved mine by resetting the Apple TV 2 pressing the menu button and down at the same time until the LED blinks rapidly according to this KB article: http://support.apple.com/kb/HT3180
    Hope this helps!

  • How can i access my Shared Library in Seagate Cental on my Iphone?

    I have a Seagate Central which has an itunes Library. I can see the library in iTunes in my MAC, but don't see the shared library in my iPhone. The home sharing is on for both my iphone and mac and they seem to work. I have gone to MORE  in iTunes but my shared Library is not coming.
    Note: Seagate Central does have iTunes Server in built into it.
    Please tell me how I can listen to my shared library in my iphone5.

    whyitislikethisinmac wrote:
    I have a Seagate Central which has an itunes Library. I can see the library in iTunes in my MAC,
    How are you "seeing" it?
    Yuu mean this is the iTunes library you are using?
    I have gone to MORE  in iTunes but my shared Library is not coming.
    iTunes on your iPhone is for purchasing items.
    Use the Music (and Videos) app on the iPhone to see the Shared library from iTunes on your Mac.

  • ITunes can't connect to iTunes store " No network Connection?? "

    So how do i connect? there is nothing in the preference to change my connection. I used to have DSL connection but know i'm using a cable modem, so can't understand why iTunes can't connect to the iTunes store??? anybody know what to do?? Thanx
    Ob1

    I had a strange variant of this issue and finally banged through to a solution.  I have an old Vista PC that I use as a music server, running ITunes 10.3.1.55. I turned off HOME SHARE to try and fix a different issue with REMOTE a few weeks ago, then could not get it re-established after, due to failed connection to the iTunes Store.
    I didn't notice nor care til I realized that turning off HOME SHARE had gotten rid of the IMPORT button when I was browsing to another library, which I use frequently to pull new music from my laptop to the server.  It is documented elsewhere that the IMPORT button comes back if you re-establish HOME SHARE.  So I tried to do that and ran into the problem with connection to the ITunes Store/mothership.
    I tried many suggestions, re-installed, etc w/o success.  Then I did below from one of the Apple docs, specifically checking off TLS.  Bingo!  I had never had it checked before, and SSL was already checked, and all my other secure connections were/are fine, but for some reason this did it.  I was able to get to the iTunes Store, re-establish my HOME SHARE and my IMPORT came back.  Interestingly, the network diagnostic under HELP still fails the SECURE LINK test, but it doesn't seem to matter.
    Another weird one solved, thanks for the leads and help here.
    Further troubleshooting steps (for Windows only)
    Correctly configure Internet Options
    Open Internet Explorer.
    On the Tools menu, click Internet Options.
    Select the Advanced tab.
    Under the Security section, look for Use SSL 3.0 and Use TLS 1.0. Make sure at least one of those two checkboxes is selected and click OK. (You can select both checkboxes).

  • ITunes can't connect to iTunes from PC Windows 7

    I haven't been active on iTunes for at least a year.  In the mean time it has continued to update.  I purchased a new iPod shuffle this past week. Finally opened iTunes to get my new Shuffle registered and load some music.  Tried to register and got what seems like no connection to Apple.  Low and behold iTunes can not connect to the iTunes store, nor anything else from Apple. iTunes program appears to be working fine other than no connection to Apple.com, and I have performed a sync to my new Shuffle w/o problems.  I simply get the "accessing iTunes store..." displaying forever.
    I have Windows 7, 64bit operating system. Trend Micro Intert Security/antiviral software.  I have tried disabling both my Windows firewall and my Trend Micro; however, iTunes still can make no connection.  Any ideas?
    Thanks!

    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 & above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • Disconnected my iphone after software upgrade but while photos and my movies were still downloading. Now I get an error message that iTunes can't connect to the phone. How do I solve this?

    Disconnected my iphone after software upgrade but while photos and my movies were still downloading. Now I get an error message that iTunes can't connect to the phone. How do I solve this? I am using a PC and have version 4.3.4 on my iphone 4.

    In order to use ''nxm://'' links, Nexus Mod Manager must be installed and associated with the ''nxm'' protocol.
    * http://www.nexusmods.com/skyrim/mods/modmanager/
    In case of problems with this third-party program, please refer to its support forum:
    * http://forums.nexusmods.com/index.php?/forum/1413-nmm-code-development-chat

  • I need to restore my iphone but itunes can't connect because it locked with password. I can't input the password becasue it showing no service and needs to be restored.

    I need to restore my iphone but itunes can't connect to it because of my password which I can't input becasue it has no service and needs to be restored. what can I do to restore it? Is there a way to input the password?

    You will need to put the iPhone into Recovery Mode to be able to restore it in iTunes.
    To put your iPod/iPhone  into recovery mode:
    1. Make sure the iPod/iPhone is connected to a computer with iTunes installed on it.
    2. Hold down the sleep/wake button(top button) and the home button at the same time until the iPod/iPhone screen goes black then shows the apple logo( usually 10-15 seconds).
    3. Once the apple logo appears on the screen, let go of the sleep/wake button and keep holding the home button.
    4. The ipod/iphone screen should show an itunes logo and usb cable if you were successful. A dialog box will appear in iTunes that states an iPod/iPhone in recovery mode has been detected if you are successful.
    5. Click ok, then click the Restore button
    After that you should be up and running in no time!
    I hope that this is helpful.

  • Can't load VM shared library on dev_bootstrap

    Hi,
    I try to install a J2EE on a Redhat server with sapdb x86_64, and on the start phase the bootstrap crash with this error:
    [Thr 1086335328] JLaunchIStartFunc: Thread 1086335328 started as Java VM thread.
    [Thr 1086335328] *** ERROR => DlLoadLib: dlopen()= libjvm.so: cannot open shared object file: No such file or directory -> DLENOACCESS (0,Suc
    [Thr 1086335328] *** ERROR => Can't load VM shared library (libjvm.so) (rc=-2) [jhvmxx_mt.c  1415]
    [Thr 1086335328] *** ERROR => Cannot load DLL for Java VM [jlnchxxi_mt. 561]
    [Thr 182897250976] Wed Dec 21 11:54:56 2005
    [Thr 182897250976] SigISetIgnoreAction : SIG_IGN for signal 17
    [Thr 182897250976] JLaunchCloseProgram: good bye (exitcode=-2)
    I've read another threads, and the solutions proposed, but does'n work.
    can anyone help me?
    thanks in advance,
    david

    Hi,
    I have the same error for RedHat 4, x86_64 et oracle.
    [Thr 49156] JLaunchIStartFunc: Thread 49156 started as Java VM thread.
    [Thr 49156] *** ERROR => DlLoadLib: dlopen()= libjvm.so: cannot open shared object file: No such file or directory -> DLENOACCESS (0,Success) [dlux_mt.c    310]
    [Thr 49156] *** ERROR => Can't load VM shared library (libjvm.so) (rc=-2) [jhvmxx_mt.c  1415]
    [Thr 49156] *** ERROR => Cannot load DLL for Java VM [jlnchxxi_mt. 561]
    Have you found a solution ?
    Thanks a lot
    Laurence

  • Within itunes, can I use the file/library/export library option to transfer itunes to a new pc

    Within itunes, can I use the file/library/export library option to transfer itunes to a new pc? I have read the other options but they will be difficult for me to action. Can this be used as an easier route?

    No. See this migrate iTunes library post.
    tt2

  • I can't access to my ipad In MacBook Air. Error shows this device no loger connected or error shows that no response from divice and iTunes can't connected or not found divice, what's the problem? I reset my ipad but no response

    I can't access to my ipad In MacBook Air. Error shows this device no loger connected or error shows that no response from divice and iTunes can't connected or not found divice, what's the problem? I reset my ipad but no response

    Hi ..
    Which OS X is installed on your Mac ?
    Click the Apple () menu top left in your screen. From the drop down menu click About This Mac. The version is noted there.
    Make sure your Mac OS X software is up to date.
    Disconnect the iPad from your Mac.
    Open System Preferences > Software Update > Check Now
    If any updates are required, make sure to restart your Mac after the updates are installed then connect your iPad and see if iTunes recognizes it under Devices.

  • Itunes can`t connect with the ipad because it is blocked with a code

    the thing is the following . I bought an Ipad and they connected it to the computer without synicing it with itunes so I could use it. I used it for a while and inserted a password. After using it I turned it off and when I got home it appears " Itunes can´t connect with the ipad because it is blocked with a code. Insert the code in the ipad to use it with itunes." The point is that I can´t even use it because it says to insert the password and the ipad says that I have to connect it to itunes so no password can be inserted so I can´t use my ipad

    You need to start all over from the beginning.  After connecting your iPad to the computer, look in iTunes for instructions how to "Restore as new."

  • ITunes can't connect to the music store or updates.

    I've never had this trouble before, and iTunes 7 has worked great for me until now. All of my other programs work fine and my internet connection is working great, but iTune can't connect at all! It worked perfectly until recently, I haven't changed versions or anything. This is confusing so if you have any advice it would be appreciated. Thanks!
    Old   Windows XP  

    hey this same thing happened to me and everytime i try and connect to my itunes i get a microsoft error and have to send an error report...but my ipod still charges and i get veryfrustrated cuz i havent been able to update my ipod for a while now... i need help too...<
    windows   Windows XP Pro  

  • Itunes can not connect with the Itunes store

    Every time I try to connect to the ITunes Store an error pops up :  Itunes can not connect with the Itunes store.  I have downloaded the updated software and have access to the internet.  Anyone ever run into this problem?

    If it still has problems after trying the steps above, try resetting Winsock. It looks like it worked for a few people in this thread -> With iTunes 10.4 I can access iTunes store.
    MTG68 wrote - In windows 7, click on your start menu, go to accessories, right click on the command prompt icon and choose "run as administrator".  Once it opens, type in the following command...
    netsh winsock reset
    hit enter and it should say something like winsock reset successful now reboot your computer.

  • I receive an error message0xe800007f iTunes can not connect with iPhone unknown error

    i receive an error message, " itunes can not connect with iphone , unknown error
    " 0xe800007f
    i have mac mini with lion os and iphone 4s

    Make sure you have the latest version of iTunes. You can download it from here -> http://www.apple.com/itunes/download/
    If that doesn't work, check out this Apple article -> iOS: Unknown error containing '0xE' when connecting to a Windows PC

  • Ipad won't turn on itunes can't connect error OxE800024

    ipad won't turn on itunes can't connect error OxE8000024

    This Apple doc has some tips that can help you fix that problem -> iOS: Unknown error containing '0xE' when connecting to a Windows PC
    If it won't turn on, you could try connecting it to another power outlet or computer.

Maybe you are looking for