Skip to main content
Inspiring
July 25, 2023
Question

Can the main ID document "follow" story editor?

  • July 25, 2023
  • 9 replies
  • 513 views

Just tried the story editor... it's OK, but I'd really like it to be followed by the ID doc that's being edited.

Is this possible?

This topic is closed to new replies. Start a new post to keep the conversation going.

9 replies

rob day
Community Expert
Community Expert
July 25, 2023

Hi @turner111 , Not sure if this helps, but a script could replicate the Story Editor’s selection in the active document. Haven’t tested this much, but seems to work—you could assign it a key command and run it after your edit:

 

 

//the active story window
var sw = app.activeWindow;

//the selection index range
var si = sw.selection[0].insertionPoints[0];
var ei = sw.selection[0].insertionPoints[-1];

//activate the story’s parent document’s window
app.activeWindow = sw.parent.layoutWindows[0];

//select the text range in the active story
var ps = app.activeDocument.selection[0].parentStory;
app.select(ps.textStyleRanges.itemByRange(si,ei), SelectionOptions.replaceWith)

//go to the selection‘s page
app.activeWindow.activePage=app.activeDocument.selection[0].parentTextFrames[0].parentPage; 

//back to the story window
app.activeWindow = sw;

 

 

 

turner111Author
Inspiring
July 26, 2023

Thanks! I'll try this out.

Not sure why this isn't built in.

Steve Werner
Community Expert
Community Expert
July 25, 2023

I think you need to explain what you mean. What does it mean that the Story Editor window be followed by the main layout view window? I don't get it.

Steve Werner
Community Expert
Community Expert
July 25, 2023

You can move the Story Editor window wherever you like on your screen.