Refresh Document Command

REFRESH System Commands

Toggles screen updates so that commands can be executed without causing a screen redraw.

refresh [ALL | DOCUMENT name | WINDOW name]

status/k Sets the refresh status.

Options: OFF Turns refresh off and does not remember what needs updating.

WAIT Turns refresh off and remembers what needs updating.

ON Turns refresh on and undoes all WAITed refreshes.

CONTINUE Turns refresh on and updates what was last WAITed.

ALL Affects all windows. Default.

DOCUMENT/s Affects a specific document.

WINDOW/s Affects a specific window.

Examples:

refresh off

refresh continue document 'project.doc'

 

Refresh  Command Definition  url:PGScmd/refresh
  created:2006-03-30 20:08:12   last updated:2006-03-30 20:08:12
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.

User Contributed Comments For Refresh
Dan Kilroy wrote...2006-05-04 17:18:43

Script command submitted from PageStream internal documentation. Needs to be checked and merged with the command documentation above.

Gets the {...} .

Refresh ([ON|OFF|WAIT|CONTINUE] [ALL | DOCUMENT document | WINDOW document-window])


Parameters:


Results:


Notes:


See Also:


Examples:
Python:


ARexx:

Applescript:

Tim Doty wrote...2006-07-12 05:31:23

This command is typically used with LockInterface to improve performance of a long-running script that would normally generate a lot of redraws on the screen.

Python:

LockInterface("true")
Refresh("wait")
# some code
Refresh("continue")
LockInterface("false")

User Contributed Comments For Refresh