> De la part de Michael Diehr
<..>
> You can simply use
> open -n  /path/to/app
> to open a new instance of an already running app

What finaly is working for me is this:

    #If TargetMacOS
      // Close all objects before restarting the app, otherwise crash ...
      CloseAllObjects
      
      Dim s As New Shell

      // Is there something less clumsy to get the same result?
      Dim cmd As String = "open -n " + chr(34) +
App.ExecutableFile.Parent.Parent.Parent.ShellPath.ReplaceAll("\","") +
chr(34)
      
      // Now Restart the app
      s.Execute(cmd)
      
      If s.ErrorCode<> 0 Then
        im.logError("Shell Error : " + Str(s.ErrorCode))
        im.logEvent("Shell result : " +  s.Result)
      End If
      
      
      // Close the existing Window
      WindowMain.Close
      
    #EndIf

Any comments?
Oliver

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to