Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Launching executable i app bundle via window.cep.process.createProcess

Community Beginner ,
Aug 03, 2024 Aug 03, 2024

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

TOPICS
SDK
268
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Aug 05, 2024 Aug 05, 2024

No (intentional) changes have been made to that functionality, in years...

Perhaps the spaces in the path aren't properly escaped? 

Translate
Adobe Employee ,
Aug 05, 2024 Aug 05, 2024
LATEST

No (intentional) changes have been made to that functionality, in years...

Perhaps the spaces in the path aren't properly escaped? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines