Skip to main content
K.Daube
Community Expert
Community Expert
September 25, 2018
Answered

How to refresh the document window?

At the end of my lenghthy script the display of the document does not reflect the work of the script.

I always must type CTRL+l to refresh the display.

Now I tried to use this function:

function ZRefresh() { // === Refresh screen =======================================================

  FcodeList = new Array(FCodes.KBD_REFRESHWIN);

  Fcodes(FcodeList);

}

But this does not the trick - I still need to use the keyboard myself...

Any suggestions?

Maybe a function to switch to master pages and back (igrnoring overwrites).

Better approches?

This topic is closed to new replies. Start a new post to keep the conversation going.
frameexpert
frameexpertCorrect answer
Community Expert
September 26, 2018

Redisplay (); // Lowercase d

Reformat (); // Lowercase f

www.frameexpert.com

6 replies

Inspiring
September 25, 2018

Hi Klaus,

On document Level there are two functions

ReDisplay();

ReFormatting();

Does this help?

Markus

Translate
K.Daube
Community Expert
K.DaubeCommunity ExpertAuthor
Community Expert
September 25, 2018

Thank You, Markus,

app.ActiveDoc.ReFormatting(); did it!

Maybe CTL+l is the equivalent to ReFormatting() and not to ReDisplay(), which has no effect in my case.

But... also this works only randomly...

ExtendScript seems to be a simulation of a gambling hall (at least in my current perception).

Translate