Open wallneradam opened 2 years ago
@wallneradam
Looks like it's because of the character 'Kivétel történt.'
Can you test other text content? just to be sure if it's causing it
Looks like it's because of the character
'Kivétel történt.'
@loonghao It means Exception occurred
in Hungarian. It is not my input. I just run the example program. It is a Hungarian machine with Hungarian PS, I can't change language of the system.
Looks like it's because of the character
'Kivétel történt.'
@loonghao It means
Exception occurred
in Hungarian. It is not my input. I just run the example program. It is a Hungarian machine with Hungarian PS, I can't change language of the system.
Very strange, I want you to help me test other examples, wondering if none of the other examples work or only this one.
It is often when there is an "error in photoshop-side" in your code that COMError emerges. For example, when you use executeActionGet
but the ActionReference you use matches no object, COMError will happen.
I suggest your testing the javascript with ExtendScript Toolkit.
@TsXor No, as you can see from the error message, it is because of system language.
@TsXor No, as you can see from the error message, it is because of system language.
It is just error message. On system with Chinsese language, it will show Exception occurred
in Chinese!
@TsXor As I wrote, I tested it with the examples of the project: https://loonghao.github.io/photoshop-python-api/examples/#eval-javascript So it should be good.
@TsXor As I wrote, I tested it with the examples of the project: https://loonghao.github.io/photoshop-python-api/examples/#eval-javascript So it should be good.
Then we should find where is wrong. Try that js. js okay -> something wrong with "communication", for example, encoding js wrong -> some js functions may be deprecated, or the js is not copied properly
Also, did ps alert anything?
this is because the 'doJavaScript' should be 'DoJavaScript' with uppercase 'D'.
Describe the bug I'm trying to run javascript with doJavaScript, but i t throws a com error.
To Reproduce Just run the example: https://loonghao.github.io/photoshop-python-api/examples/#eval-javascript
Desktop (please complete the following information):
Additional context The traceback: