Relaunch

Devin Asay devin_asay at byu.edu
Fri Feb 2 10:25:39 EST 2007


On Feb 1, 2007, at 9:12 PM, Charles Szasz wrote:
> Has anybody use the relaunch command to prevent an application from  
> being launch a second time while it is open?
>
>

Charles,

Just include a relaunch handler in the stack script that blocks the  
message from being passed. I do this all the time to prevent multiple  
instances of my app on Windows.

on relaunch
   ## block - not passing relaunch kills the new instance
end relaunch

Devin

Devin Asay
Humanities Technology and Research Support Center
Brigham Young University




More information about the use-livecode mailing list