I have partly achieved the above, by asking KM to check if the usb drive is connected, and accordingly quit the specific application (if the drive is not there). However, the application is still launching for a few (mili)seconds which means it has already detected that the required hard disk drive is not there and have since automatically adjusted certain settings.
Is there any way that I can set KM to check the usb drive BEFORE even launching the application, instead of quitting it?
What triggers the launch of the application? If you can replace that with running the macro then you can perform the check and start the application if the drive is connected.
As a thought. Would it make sense to store example.app on the hard drive itself? I do that with my steam library and steam.app. Can’t even open steam unless the hard drive is attached.