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

Click here to return to the 'An AppleScript to mount, run, unmount a disk image' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An AppleScript to mount, run, unmount a disk image
Authored by: stuming on Sep 09, '04 08:49:10AM

Hi all,

Anyone know how/if I can use the above script to mount and then unmount physical firewire drives?

I have a couple of external disks: one holds all my photos, mp3s, movies, audio etc, the other is the backup drive to which Backup 2 rights to when backing up my system.

I week or so ago, I discovered that iTunes had somehow found the backed up library and was using that as the default. To stop this is generally eject the backup drive off the desktop, but of course, I have to remember to mount it again before backup 2 runs. I forget quite often!

I'd like to do this automatically if possible.


[ Reply to This | # ]
An AppleScript to mount, run, unmount a disk image
Authored by: rhithyn on Sep 09, '04 09:58:22AM

This would be a more significant issue with iTunes configuration and should probably be addressed as such. I suspect that you did a search for music since backing up and iTunes found your backup on top of your regular source.

What you should do to fix the problem is the following:

  1. Download and install this script from Doug's Applescripts for iTunes (Super Remove Dead Tracks).
  2. Under "Advanced" tab in iTunes Preferences, verify that "iTunes Music folder location" is set to where you want to keep your music. Usually, having the "Copy files to iTunes Music folder when adding to library" turned on is a good idea as well, but it isn't necessary.
  3. Verify that your original folder has all of the music.
  4. Temporarily unmount your Backup2 drive
  5. Run the Super Remove Dead Tracks script in iTunes.

That should remove any references to the new folder. Note that the script only removes the references from the iTunes library and not the files (at least last time I used it) so it should be safe to run once the volume is unmounted.

If the music is not in your library, try consolidating your music after step 2 above (in iTunes, use "Consolidate Library..." under "Advanced" menu) and then you may want to check for duplicate songs using another script from Doug's site.

[ Reply to This | # ]