I have a MacBook Pro, and when on my desk it is connected to a thunderbolt display. And I have an external hard drive connected to my thunderbolt display. This hard drive has 2 partitions and contains my iTunes library, as well as other things I rarely need when away from my desk.
When I remove my laptop from my desk, I need to perform a few steps or else I can potentially corrupt files on the external drive during the forceful disconnect. This has happened a few times, and I have had to restore backups of my iTunes library or other files. This is becoming a huge pain everytime I wish to remove my computer from my desk.
- Quit iTunes (if open) since the iTunes library file is on the external disk.
- Open a finder window.
- Click the "Eject" button on one of the 2 partitions
- Click the "Eject All" button in the dialog that appears asking if I want to eject all partitions on that physical disk or just one.
I'm not familiar with scripting or automation tools on OSX. But is it possible to create some sort of automation script that I could activate with a single click in the dock? Or perhaps via spotlight? And what would such a script look like?