• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

InDesign SOAP UXP get args & setResult not working

Community Beginner ,
Apr 19, 2023 Apr 19, 2023

Copy link to clipboard

Copied

If I run the following soap request, "script.args" is shown as an empty array and the soap response is only "<errorNumber>0</errorNumber>"

But regarding the documentation, this should be working.

<runScriptParameters>
    <scriptText>
        const script = require('uxp').script;
        await app.consoleout(JSON.stringify(script.args));
        return script.setResult('1234');
    </scriptText>
    <scriptLanguage>UXPScript</scriptLanguage>
    <scriptArgs>
        <name>testarg</name>
        <value>123</value>
    </scriptArgs>
</runScriptParameters>

What have I done wrong?

TOPICS
Bug , Scripting , UXP Scripting

Views

147

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation