make Rev standalone wait for external app

Ken Ray kray at sonsothunder.com
Wed Mar 7 13:52:01 CST 2007


On Wed, 7 Mar 2007 10:56:10 -0700, Chris Sheffield wrote:

> On OS X 10.4.8, Rev 2.8 gm3. I need to launch an external app 
> (installer) from my Rev standalone. I need my standalone to wait for 
> the app to close before continuing. What's the best way to do this? 
> I've tried several different things including using the launch 
> command, using the shell() function, and using the "open application" 
> command via AppleScript. Nothing seems to work. My standalone 
> continues on immediately following the code to open the external app.
> 
> Is there some other way? Or will it be necessary to just sit in a 
> repeat loop, watching for the application to quit. Any help is 
> appreciated.

Well, theoretically if you launch the installer with "open process", 
you can continually check the openProcesses in a loop until the process 
disappears from the openProcesses... haven't tried it myself, but 
theoretically should work.


Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/



More information about the use-livecode mailing list