Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Play iTunes from anywhere via SMB' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Play iTunes from anywhere via SMB
Authored by: flood on Feb 16, '06 10:01:43PM

"The only thing is to make sure that the share is mounted before iTunes starts up, otherwise iTunes will fall back to the default location for music files on your local hard drive."

I did have this problem with my windows itunes connected to my smb share on my mac-mini. To "solve" this problem, I did this workaround... change the security so my user cannot access at all the default folder of iTunes. This way, iTunes cannot change the folder.

I didn't try this on Mac OS X but it should work.

* delete all the content of ~/Music/iTunes then do this :
sudo chown root.wheel ~/Music/iTunes
sudo chmod 700 ~/Music/iTunes

To recover normal functionality, just delete the iTunes folder
sudo rm ~/Music/iTunes



[ Reply to This | # ]
erratum - Play iTunes from anywhere via SMB
Authored by: flood on Feb 16, '06 10:07:18PM

I did a little mistake...
rm is for removing a file... not a folder (rmdir). We should read :

To recover normal functionality, just delete the iTunes folder
sudo rmdir ~/Music/iTunes



[ Reply to This | # ]
Play iTunes from anywhere via SMB
Authored by: mweier on Sep 23, '06 12:31:08AM
i had same problem as you (I was totally sick of iTunes changing my default library to ~/music/iTunes or whatever if the net volume wasn't connected. here's an applescript i cobbled to use instead of double-clicking itunes itself. it first checks whether my network volume is mounted -- if it is, it opens iTunes. if not, it makes sure it's reconnected, then launches itunes. i'm intrigued by the chmod route since my applescript doesn't solve the issue of the volume getting unmounted while itunes is already mounted... if you wantr to use, just customize the volume name and/or procol (cifs vs smb) throughout, as well as in the if statement. in my case, i'm using workgroup as the workgroup, mamecade as the server name, music as the shared folder and mweier as the user i connect with (pw comes from keychain, presumably) any AS guru's who want to streamline, go for it!

 


tell application "Finder"
activate
if exists disk "MUSIC" then
tell application "iTunes"
activate
end tell
return
end if
try
mount volume "cifs://workgroup;mweier@mamecade/music"
on error
beep
display dialog ¬
"Couldn't find music" buttons "Cancel" default button 1 with icon caution
end try
repeat until (list disks) contains "MUSIC"
end repeat
tell application "iTunes"
activate
end tell
return
end tell


[ Reply to This | # ]