Process.isOpen() This page was last modified over 30 day(s) ago and has 0 comment(s)

Back to Process Class Summary

Windows, Mac OSX, Linux



boolean indicating if process referenced by instance is still open

Returns a boolean indicating whether or not the specified process is active.

Please note that on Mac OS X that is not possible to launch directly Mac OS X native application (Cocoa based) with mdm.Process. If you run application like using mdm.Process with "open" launch service your process will end and return as soon as native appellation is launched. So testing instance of mdm.Process at some point in feature will return false - while you could expect it returning true (as instance of Safari browser is still open).
Only when native tool like shell integrated Unix components are launched with mdm.Process "isOpen" could return expected results - as your process is still running in the background

Example Code
// variable declared elsewhere
private var process:mdm.Process = null;
// after process is created
// was this process already created
if(process != null)
// is this process still running?
// if so kill it (forcefully close)
if(process.isOpen() == true)
var killed:Boolean = process.kill();
// release
process = null;

mdm.Process Class Example Downloads
Simple Process Example

Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page