iTunes can't connect to shared library UNLESS it's manually connected?
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.
iMac 27", Mac OS X (10.6.7), iTunes 10.2