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

how pass variable script to c#?

Community Beginner ,
Mar 06, 2018 Mar 06, 2018

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
456
Translate
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

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

Translate
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
LATEST

Moving to InDesign Scripting forum

Translate
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