Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code containing multiple consecutive double quotes gives error 25 #27

Open
FitzFoto opened this issue Sep 6, 2022 · 0 comments
Open

Comments

@FitzFoto
Copy link

FitzFoto commented Sep 6, 2022

ExtendScript Toolkit 4.0 renders a particular piece of code as:
actionDescriptor1.putString ( idassetRef, """{"local_id" :"urn:uid:local:22998ae8-23c9-4278-bc6c-c2b11783caf2","path" :"""+filename2SaveInDirectory+""","display_name" :"""+filename2Save+"""}""" ); //[All on one line - and it works]

However, ExtendScript Debugger v2.0.3 renders the code as:
actionDescriptor1.putString(idassetRef, ""
"{"
local_id " :"
urn: uid: local: 22998 ae8 - 23 c9 - 4278 - bc6c - c2b11783caf2 ","
path " :"
"" + filename2SaveInDirectory + ""
","
display_name " :"
"" + filename2Save + ""
"}"
""); //[On separate lines - and it gives error 25]

Error 25: Expected: ).
Line nnnn
->		"{"

I.e., the second line above.

This behaviour affects other code containing multiple consecutive double quotes, and gives error 25.

The code was copied from ScriptListener, and forms part of the PS code to save in the Cloud..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant