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

How to: Text Thread

Participant ,
May 16, 2009 May 16, 2009

Hi,

How to write Javascript

1. to Change the Text Thread color?

2. to Show the text thread?

Thanks a million!

TOPICS
Scripting
2.4K
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

correct answers 1 Correct answer

Community Beginner , May 18, 2009 May 18, 2009

you can use:

app.menuActions.item("$ID/Show Text Threads").invoke();

to show the linkages between text boxes (it is the same as selecting the menu 'View:Show Text Threads")

app.menuActions.item("$ID/Hide Text Threads").invoke();

will hide them.

I did a quick test, and there's something funky going on behind the scenes if you manually turn threads on and off through the menus, but this code seems to be reliable regardless of initial setting.

var showThreads = app.menuActions.item("$ID/Show Text Thread

...
Translate
LEGEND ,
May 17, 2009 May 17, 2009

How to write Javascript

1. to Change the Text Thread color?

what do you mean - color of Text, color of background of TextFrames, color of TextFrames edges, etc. ?

2. to Show the text thread?


and again - show what ? lines between TextFrames showing TextFrames links ? or something else ?

robin

www.adobescripts.co.uk

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
Participant ,
May 17, 2009 May 17, 2009

to change the thread color, mine text thread is light gray in color.

Can change this color using JS?

Thanks alot.

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
Participant ,
May 17, 2009 May 17, 2009

and also using JS to Show the text thread..

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
Advocate ,
May 17, 2009 May 17, 2009

A text thread doesn't have a color, per se. It inherits the color from the UI color of the layer holding the text frames. Specifically, the thread connector is shown using the color of the "before" text frame.

So, to change the color, you can either change the UI color of the layer holding the text frames or change the itemLayer of the frames.

As to your second question, I don't think the show text threads option is exposed to scripting.

Dave

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 ,
May 17, 2009 May 17, 2009
I don't think the show text threads option is exposed to scripting.

I searched in vain for text threads, first in ViewPreferences (the logical place), then with an exhaustive search all through the help. It's not there.

A strange omission, although not one that has been reported AWOL straightaway, so perhaps it's not that crucial to anyone else. Perhaps Ole knows why, if there is reason.

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
Participant ,
May 17, 2009 May 17, 2009

pardon me.. who's Ole?

Is he/she from Adobe?

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
LEGEND ,
May 17, 2009 May 17, 2009

hi

Ole is "he" and is from Adobe

you can find him somewhere here on forum

robin

www.adobescripts.co.uk

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
LEGEND ,
May 17, 2009 May 17, 2009

To further enlighten you: Ole's full name is Olav Martin Kvern. He's the one who started this (scripting) forum and he "wrote the book" on InDesign and scripting (many of them...)

Harbs

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
Participant ,
May 17, 2009 May 17, 2009

Oh.. so I know another Indesign expert here in this forum.

anyway..

I would like to thank you people who have offered help and advice to an Indesign novice like me.

Many Thanks to You!!

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 Beginner ,
May 18, 2009 May 18, 2009

you can use:

app.menuActions.item("$ID/Show Text Threads").invoke();

to show the linkages between text boxes (it is the same as selecting the menu 'View:Show Text Threads")

app.menuActions.item("$ID/Hide Text Threads").invoke();

will hide them.

I did a quick test, and there's something funky going on behind the scenes if you manually turn threads on and off through the menus, but this code seems to be reliable regardless of initial setting.

var showThreads = app.menuActions.item("$ID/Show Text Threads");

try {showThreads.invoke()} catch (givenError){};


var hideThreads = app.menuActions.item("$ID/Hide Text Threads");

try {hideThreads.invoke()} catch (givenError){};

Note that this actually leaves threads "ON", but that's why it's 'funky'. (Or I'm just not getting what's actually going on...)

--

Wölf

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
Participant ,
May 18, 2009 May 18, 2009
LATEST

ya.. it works somehow. I also don't really understand

Thanks alot!

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