Copy link to clipboard
Copied
i want create text file of content textFrame.
pleas help me.
Copy link to clipboard
Copied
Moving to InDesign Scripting (again)
Copy link to clipboard
Copied
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#.
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
Copy link to clipboard
Copied
noooooooooooooooooooooooooooo.
I did not answer yet
Copy link to clipboard
Copied
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