forked from graysitory/Novelty
-
Notifications
You must be signed in to change notification settings - Fork 1
/
View_Overrides.jsx
executable file
·32 lines (29 loc) · 1.78 KB
/
View_Overrides.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#target InDesign;
/***********************************************************************/
/* */
/* ShowHideLocalFormatting :: Show/hide local formatting */
/* */
/* [Ver: 1.1] [Author: Marc Autret] [Modif: 05/25/10] */
/* [Lang: EN] [Req: InDesign CS4] [Creat: 05/09/10] */
/* */
/* Installation: */
/* */
/* 1) Place the current file into Scripts/Scripts Panel/ */
/* */
/* 2) Run InDesign, open a document containing texts */
/* */
/* 3) Exec script from Window > Automatisation > Scripts */
/* (double-click on the script name) */
/* */
/* Bugs & Feedback : marc{at}indiscripts{dot}com */
/* www.indiscripts.com */
/* */
/***********************************************************************/
if( app.documents.length &&
app.activeDocument.textPreferences.enableStylePreviewMode^= 1 &&
app.layoutWindows.length &&
app.activeWindow.constructor==LayoutWindow){
app.activeWindow.screenMode = ScreenModeOptions.previewOff;
// UPDATE [100525] - THX to ptruskier
app.activeWindow.overprintPreview = false;
}