The JMP Application has a built-in script that would be a good place for checks like these. The Application workflow is:
Run Application Script;
for each module (
if (module is autolaunch,
module<<Create Instance()
);
);
One way to add pre-launch checks for your applications would be:
1. Turn off Autolaunch for all modules (select in object panel, toggle off Auto Launch in properties)
2. On the script tab for the Application:
okToLaunch = /* insert conditions */
if (okToLaunch,
Module1 << Create Instance,
/* else show error dialog and exit */
);