MApplication myApplication = myInstance.application();
MHost myHost = myInstance.host();
String appPath = null;
if (myHost.osType().equals("UNIX")) {
appPath = myApplication.unixPath();
} else if (myHost.osType().equals("WINDOWS")) {
appPath = myApplication.winPath();
} else if (myHost.osType().equals("MACOSX")) {
appPath = myApplication.macPath();
}