Copy link to clipboard
Copied
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
No (intentional) changes have been made to that functionality, in years...
Perhaps the spaces in the path aren't properly escaped?
Copy link to clipboard
Copied
No (intentional) changes have been made to that functionality, in years...
Perhaps the spaces in the path aren't properly escaped?
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more