Skip to content

Code containing multiple consecutive double quotes gives error 25 #27

@FitzFoto

Description

@FitzFoto

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..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions