About sebflipper

iTunes External Drive Detection

If your like me and have far too much music you will have probably transferred it all to an external hard drive, which is great as it frees up some space on your computer, but not so great if you forget to turn it on and you start up iTunes.

iTunes has the habit of marking all the files all the files it can’t find with an exclamation and then not syncing with iPods etc, which is why I wrote a an Automator script for my Mac to detect if my hard drive is connected:

tell application "Finder"
	if exists folder "LaCie 500GB Mini Hub:Music:" then
		launch application "iTunes"
		tell application "iTunes"
			launch
		end tell
	else
		display dialog "Please turn on LaCie 500GB Mini Hub" buttons {"OK"} default button 1
	end if
end tell

To use, open up Automator paste the code in and change “LaCie 500GB Mini Hub:Music:” to the name of your drive and location of your music collection, then save as an application, then just drag it on your dock and remove the original iTunes icon (you can even give it the same icon as iTunes by following this guide). If it detects your drive it will automatically load iTunes otherwise it display a message.

Leave a Reply