left menu mob button

New Video on YouTube:


Jeanette Ashman
(09.11.2021 16:37):

Hi! I have several documents that use the same paragraph styles. I have all the files in a book so if I change something I can synchronies. But in the heat of the moment I sometimes make changes in one of the documents and forgets to synchronize. So... I am looking for a script where I can compare paragraph styles from different files (same name on paragraph style) and only see the difference between them. Do you know if there is something like that existing? Kind regards Jeanette

(Compare Styles)

(10.08.2021 9:44):

Hi. If there is a group style, its subset style will not be displayed.

(Copy GREP Styles)

(24.06.2021 9:04):

hi. It is a perfect script.

(Common Formatting of Several Tables)

Only The Necessary Information

(series of articles):

Quick Spread Rotate

The rotation of a spread in the layout is a useful function, of course, but has one inconvenience — its availability or, more precisely, "hiddenness" in the menu/submenu. The inconvenience is especially felt during high-speed work, when you need to quickly rotate the spread by 90 degrees (90 CW), edit the contents, rotate the spread back (apply "Clear Rotation" action) and continue working. It would be much easier if the program executed such actions when just one button was pressed, and if this button was always at hand.

Spread Rotate

A search for solutions on the web gave a very dubious result (in my opinion). The best I’ve found is a script that requires working with a dialog box, as well as the ability to understand transformation matrices.


The size of the code also unpleasantly impresses.

The solution, however, was found thanks to the possibility to use a script to access the program menu items. I’ll remind that in the menu, the necessary items are located in: "View/Rotate Spread/(90 CW/90 CCW/180/Clear Trasformation)". The last item is not available if the spread is not rotated, and this will also simplify the programming of this task:

var mnu = app.menus.item("$ID/Main").submenus.item("$ID/View").submenus.item("$ID/Rotate Spread");
if (mnu.menuItems[-1].enabled){

This script rotates the spread by 90 degrees if it is not rotated, and it rotates the spread back if it is rotated.

To obtain the execution button, which will always be in front of your eyes, you can make use of the interface for typical operations, by adding there the full text of the code:

var but2_1 = addWorkButton (pan2,"RotateSpread",100,0);
but2_1.onClick = function(){
 w.text = "Running...";
 var mnu = app.menus.item("$ID/Main").submenus.item("$ID/View").submenus.item("$ID/Rotate Spread");
 if (mnu.menuItems[-1].enabled){mnu.menuItems[-1].associatedMenuAction.invoke();}
 w.text = "Completed";

No comments.