Launching executable i app bundle via window.cep.process.createProcess
Hello!
I am trying to launch an app bundle via
window.cep.process.createProcess(path)
My executable used to be located at:
path="/Applications/MyApp.app/Contents/MacOS/MyApp"Now it has moved to here:
path="/Applications/MyApp.app/Contents/PlugIns/Workflow Extension.appex/Contents/Resources/MyAppHelper.app/Contents/MacOS/MyAppHelper"The issue is that when I execute "MyAppHelper", it also starts the executable at `MyApp.app/Contets/MacOS/MyApp`. This obviously does not happen if I execute the MyAppHelper binary by simply doing e.g.
cd "/Applications/MyApp.app/Contents/PlugIns/Workflow Extension.appex/Contents/Resources/MyAppHelper.app/Contents/MacOS/"
./MyAppHelper
I tried a workaround like doing the above in a bash script and launching it via:
window.cep.process.createProcess("/bin/bash", csInterface.getSystemPath(SystemPath.EXTENSION) + "/launch-helper.sh")
But this does not start anything at all unfortunately.
How can I get the process API to only start "MyAppHelper" in this case, and not the other binary in the containing app bundle in /Applications?
Kind regards,
Max
