Copy link to clipboard
Copied
Hi community! I have a problem with PPRO crate bin. I have an application logic that creates a bin into which files are then imported. Everything is working fine, but if I go inside the bin any following script breaks with "EvalScript Error" message. Empirically, I found out that even if I create a bin directly through PPRO, and then try to call the script in the debugger (without using the logic of my cep extension), it also returns an error. I can't figure out why this is happening, maybe it's a bug in the PPRO itself and it should be fixed. Thank you for your attention
Copy link to clipboard
Copied
P.S My PC - mackbook. Last PPRO version. Updated Monterey
Copy link to clipboard
Copied
Could you post some ExtendScript, that reliably reproduces the problem?
Also good: steps to repro the behavior. 🙂
Copy link to clipboard
Copied
Steps
1. Create bin into project (can create without scrip, just create in PPRO)
2. Go into created bin
3. Open debug mode in browser and send window.__adobe_cep__.evalScript('app.encoder.launchEncoder()', function(res){console.log(res)})
In my case first try response be EvalScript Error
Copy link to clipboard
Copied
If it doesn't work for you, I'll make a video of how I do it.
Copy link to clipboard
Copied
evalScript() is for use from within a CEP extension, but you don't mention any extension...???
Copy link to clipboard
Copied
Its my custom extension
Copy link to clipboard
Copied
Yes, I'm sorry, I didn't express myself correctly, this problem concerns the cep extension
Copy link to clipboard
Copied
Can you also get the same failure, by calling evalScript() from within your extension?
I don't see it, here; PProPanel can create a bin, then invoke any other ExtendScript (including app.encoder.launchEncoder()), without issue.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
There's no way to provide meaningful feedback, without seeing the code, that goes along with those steps. Reaching out privately...
Copy link to clipboard
Copied
Code from second video just use evalScript('app.project.importFiles([path])
Copy link to clipboard
Copied
If that really was the code, it would fail, because of the unmatched single quote. 🙂
Please send a complete snippet, and step-by-step instructions on how to reliably reproduce the problem.