I'm running another program using the shell command. Then I call the AppActivate command. But it gives a runtime error saying that the program isn't loaded up yet. The program probably is taking a long time to load. Is there a way to delay or wait until the program is completely loaded?