Skip to main content
Participant
April 12, 2025
Question

UXP Error in Premiere Pro Beta 25 2 EvalScript Fails

  • April 12, 2025
  • 2 replies
  • 310 views

Product and Version: Adobe Premiere Pro Beta 25.2 Operating System: macOS Sonoma 15.2

Bug Description: Uxp panels cannot run ExtendScript code. Calling the csInterface evalScript function fails in Premiere Pro Beta 25 2.

Steps to Reproduce:

  1. Create a basic UXP panel. Use manifest json, index html, index js files.
  2. Include the CSInterface js library file. Tested version 12 and version 11.
  3. Add a button to the panel.
  4. Make the button call csInterface evalScript with simple ExtendScript, like an alert.
  5. Load this panel in Premiere Pro Beta 25 2.
  6. Open the panel.
  7. Open the UXP developer console for the panel.
  8. Click the button.

Expected Result: The ExtendScript code should run. For example, an alert should appear in Premiere Pro.

Actual Result: A TypeError message appears in the UXP console. The error happens inside the CSInterface js file when it tries to run evalScript. Console logs added before the function call show that the required 'window adobe_cep' object is undefined at that moment. This seems to be the cause of the failure.

Troubleshooting Performed: The problem happens even with a minimal test panel. The problem happens with both CSInterface js version 12 and version 11. Console logs confirm 'window adobe_cep' is undefined before the call.

Impact: This stops UXP extensions from using ExtendScript in Premiere Pro Beta 25 2.

Additional Information: The minimal test code and detailed console logs can be provided if needed.

2 replies

Adobe Employee
April 13, 2025

Hi Olesia_9263,

Thak you for the detailed bug report. I'm sorry you went to all that effort, because the fundamental problem is that UXP doesn't use ExtendScript - and it won't ever. UXP is our replacement for ExtendScript. For the same reason, csInterface only exisits in CEP.

It's a time of transition; UXP does not yet have the entire API of CEP exposed - we expect that to be complete this year. (CEP will be supported for at least a year following that.) We push updates to the UXP API about every two months.

Regards,

Dan

Participant
April 12, 2025

sorry, that is not all the information

Minimal Test: Панель завантажується...
index.js:4 Minimal Test: DOM завантажено.
index.js:12 Minimal Test: Об'єкт CSInterface створено.
index.js:59 Minimal Test: Обробник кнопки додано.
index.js:21 Minimal Test: Кнопку натиснуто.
index.js:24 Minimal Test: Перевірка csInterface та window.__adobe_cep__ ПЕРЕД викликом evalScript:
index.js:25 Minimal Test: typeof csInterface: object
index.js:26 Minimal Test: typeof csInterface.evalScript: function
index.js:27 Minimal Test: typeof window.__adobe_cep__: undefined
index.js:28 Minimal Test: window.__adobe_cep__: undefined
index.js:41 Minimal Test: Виклик csInterface.evalScript...
index.js:54 Minimal Test: Помилка під час виклику evalScript: TypeError: Cannot read properties of undefined (reading 'evalScript')
at CSInterface.evalScript (./lib/CSInterface.js:618)
at e.exports.<anonymous> (index.js:44)
at uxp://uxp-internal/domjs_scripts.js:2
at P (uxp://uxp-internal/domjs_scripts.js:2)
at uxp://uxp-internal/domjs_scripts.js:2
at D (uxp://uxp-internal/domjs_scripts.js:2)
at L (uxp://uxp-internal/domjs_scripts.js:2)
at dispatchNativeEvent (uxp://uxp-internal/domjs_scripts.js:2)
at e.exports._retargetAndDispatchNativeEvent (uxp://uxp-internal/domjs_scripts.js:2)
at e.exports.onEvent (uxp://uxp-internal/domjs_scripts.js:2)
(anonymous) @ index.js:54