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

how script create text file

Community Beginner ,
Mar 04, 2018 Mar 04, 2018

Copy link to clipboard

Copied

i want create text file of content textFrame.

pleas help me.

TOPICS
Scripting

Views

1.0K

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 04, 2018 Mar 04, 2018

Copy link to clipboard

Copied

Moving to InDesign Scripting (again)

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 04, 2018 Mar 04, 2018

Copy link to clipboard

Copied

Hi shahriara7551080 ,

what scripting or programming language would you like to use?

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 Beginner ,
Mar 05, 2018 Mar 05, 2018

Copy link to clipboard

Copied

how use variable x in c#?

var textFrame = app.selection[0]; 

x=textFrame.texts[0].contents ;

alert(x);

i want Assign Variable x to text box in C#.

this code printing "textFrame.texts[0].contents" but i want content textframe . pleas help me .

In js,

     app.scriptArgs.setValue("x", "textFrame.texts[0].contents");

In c#

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

An idea i have ، first i create text file of content text frame then assign text file to textbox in c#.

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 05, 2018 Mar 05, 2018

Copy link to clipboard

Copied

Ah. Then this question is exactly the same like this one:

how using script variable in c#?

I think you already found a good help in this other thread. Especially by Chinnadk  with:

Re: how using script variable in c#?

So i think, we can close this thread here.

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 Beginner ,
Mar 05, 2018 Mar 05, 2018

Copy link to clipboard

Copied

noooooooooooooooooooooooooooo.

I did not answer yet

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 05, 2018 Mar 05, 2018

Copy link to clipboard

Copied

LATEST

What is the point to leave open two threads with a identical question and topic by the same person ( you )?

If answers are added later here and there it's very hard to follow for people with the same question.

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