Skip to main content
Inspiring
June 17, 2025
Answered

Monitor cep processes windows

  • June 17, 2025
  • 1 reply
  • 282 views

Hi there.

I've searched for an answer to the following and tried a few examples I found.

 

I'm running a python script from Premiere Pro 24.

Using

var result = window.cep.process.createProcess(path_to_python_exe, path_to_python_script)

 

The python script then generates a json file.

Using result.data i can get the pid of the process.

 

But. window.cep.process.onquit(result.data) or process.isRunning never trigger and can't seem to find the process.

 

I'm on windows.

Is this a known bug? Is the process detached somehow? I put a delay at the end of the python script in case it was finished too fast, but it made no difference. The json file gets created each time.

 

Any help appreciated 

 

Cheers

Correct answer Imkindofabigdeal

Hey Bruce

Yeah it did work. And I refactored my code to match the example in that extension and it also seems to be working.

 

I need to do a little more testing, but thanks for putting me on the correct path.

1 reply

bbb_999
Community Manager
Community Manager
June 17, 2025

Running in PPro, in the CEP HTML Test Panel's "Native Functions" tab, does the "Set OnQuit Handler" work correctly?

ImkindofabigdealAuthorCorrect answer
Inspiring
June 18, 2025

Hey Bruce

Yeah it did work. And I refactored my code to match the example in that extension and it also seems to be working.

 

I need to do a little more testing, but thanks for putting me on the correct path.