tjluoma / mnt-itunes-drive

shell script to make sure that external drive used with iTunes is actually mounted

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mnt-itunes-drive

What Is It?

A shell script and Keyboard Maestro macro to make sure that your external drive used with iTunes is actually mounted.

Why?

Do you use an external drive with iTunes?

No? Stop reading.

Yes? Do you ever launch iTunes when the drive isn't mounted, only to realize later that iTunes has hëlpfully started storing things on your main drive?

No? Stop reading.

Yes? Well, then this is for you.

How?

A Keyboard Maestro macro (mnt-itunes-drive.kmmacros) runs whenever iTunes launches or activates:

Screenshot of Keyboard Maestro macro

that macro calls a shell script (mnt-itunes-drive.sh) which does the heavy lifting.

Things You Must Do Before This Will Work For You

  1. edit the DRIVE_NAME= variable in mnt-itunes-drive.sh to point to the correct name of your external drive

  2. Put mnt-itunes-drive.sh somewhere in your $PATH

  3. Load mnt-itunes-drive.kmmacros into Keyboard Maestro and point it at wherever you put mnt-itunes-drive.sh

About

shell script to make sure that external drive used with iTunes is actually mounted


Languages

Language:Shell 100.0%