Skip to main content
K.Daube
Community Expert
Community Expert
Sep 25, 2018 1:56 PM UTC
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
Sep 26, 2018 1:38 PM UTC

Redisplay (); // Lowercase d

Reformat (); // Lowercase f

www.frameexpert.com

6 replies

Inspiring
Sep 25, 2018 2:09 PM UTC

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
Sep 25, 2018 3:39 PM UTC

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