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

how pass variable script to c#?

Community Beginner ,
Mar 06, 2018 Mar 06, 2018

Copy link to clipboard

Copied

hi .

how pass content x to y ?

var textFrame = app.selection[0];  

x=textFrame.texts[0].contents ;

app.scriptArgs.setValue("y", "x");

In c#

     Console.WriteLine(InDesignApp.ScriptArgs.GetValue("y"));

this printing x .

i want print content x.

pleas help me.

TOPICS
Scripting

Views

388

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
Community Expert ,
Mar 06, 2018 Mar 06, 2018

Copy link to clipboard

Copied

Hi shahriara7551080 ,

please post questions like that in the appropriate forum here:

InDesign Scripting

Regarding your question:

I think, Chinnadk gave you the answer to a similar question here:

Re: how using script variable in c#?

Regards,
Uwe

Votes

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
Community Expert ,
Mar 06, 2018 Mar 06, 2018

Copy link to clipboard

Copied

LATEST

Moving to InDesign Scripting forum

Votes

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