I use an AppleScript in Indigo that checks if an app is running, if not, it checks if a drive is mounted and if so starts the app. If the drive is not mounted it attempts to mount the drive, checks if it is mounted and starts the app. If I understand correctly this will stop working on the next version of indigo. Is there a python equivalent.
Background:
I have two apps that each require a specific external drive to be mounted to work. It is very rare that either drive does not mount automatically at startup however it has happened. So I created the AppleScript to check for me. It also starts the apps for me after the indigo server starts and checks periodically.
The first app is iTunes and it’s drive is iTunes
The second app is SecuritySpy and it’s drive is Cameras.