left menu mob button

New Video on YouTube:


Comments

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)

hadi
(10.08.2021 9:44):

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

(Copy GREP Styles)

hadi
(24.06.2021 9:04):

hi. It is a perfect script.

(Common Formatting of Several Tables)

Only The Necessary Information

(series of articles):

Compare Styles

The script makes it possible to compare the parameters of two or more paragraph styles. The report is formed in a new document (automatically generated) in the form of a table. The parameters that differ are highlighted.

compare paragraph styles

A Script Option: it is possible to search in a document for the text, to which selected styles were applied, and include the information about the pages the styles were found on in the report.

The script can be useful for putting the styles list in order.


Update to the version 2.0 from 16.03.2015

The algorithm for the compilation of the styles data has been completely redesigned. Now, the user receives the most complete information about the styles, regardless of the version of the program used (from CS3). The script code size itself has decreased several times.


Update to the version 3.0 from 22.12.2020

1. Now, the script will allow you to compare the properties of styles of any type (paragraph, character, object, table styles). In the start window, you must select the type of styles, and in the next window — the styles themselves. Searching within document pages is available only for text styles (paragraph and character styles).

2. The user interface has been fixed, and now looks and works correctly in the CC versions.

update-v3-0.png


Upgrade to version 3.1 from 29.05.2021

The algorithm of the search for styles in a text has been fixed. The search for character styles did not work. Instead, an attempt was made to search for paragraph styles. Now the script searches for those styles that the user selected (paragraph / character) in the start dialog.

Thanks to the user Tomasz Kuc for his comment on this, and for providing the corrected code.

dnlbutton


You can thank here


Comments: 4

Tomasz Kuc (28.05.2021 15:53) E-mail

That's nice one! I found and corrected one error case: if you checked "Searched on Pages", only paragraph styles are to be found (see line 132: > app.findTextPreferences. appliedParagraphStyle = mySt;). So, I added condition for checking if the user chose "paragraph" or "character", and the switch for app.findTextPreferences accordingly.

Full corrected part is below:

if (myIfFindP && (stylesType == "character" || stylesType == "paragraph" )){
var myMaximumValue = 400;
var myProgressBarWidth = 400;
myCreateProgressPanel(400, 400, "Starting...");
myProgressPanel.show();

res += "FOUND ON PAGES:";
var myPages = "";
var curP = new Array();
app.findChangeTextOptions. includeMasterPages = true;

for (k = 0; k<myStyles.length; k++){ //Цикл по стилям, loop by styles' collection
var stepCount = 0;
app.findTextPreferences = app.changeTextPreferences = null;
var mySt = myStyles[k];
switch (stylesType) {
case "character":
app.findTextPreferences. appliedCharacterStyle = mySt;
case "paragraph":
app.findTextPreferences. appliedParagraphStyle = mySt;
}
var myF = myDoc.findText();


---- Отличная работа, большое спасибо :)

Reply
Tomasz Kuc (28.05.2021 16:27) E-mail

Some improvements below (there is no need for the main condition with myIfFindP as far as I recognize):

if (myIfFindP){
var myMaximumValue = 400;
var myProgressBarWidth = 400;
myCreateProgressPanel(400, 400, "Starting...");
myProgressPanel.show();

res += "FOUND ON PAGES:"
var myPages = "";
var curP = new Array();
app.findChangeTextOptions. includeMasterPages = true;

for (k = 0; k<myStyles.length; k++){ //Цикл по стилям, loop by styles' collection
var stepCount = 0;
app.findTextPreferences = app.changeTextPreferences = null;
var mySt = myStyles[k];
if (stylesType == "character") {
app.findTextPreferences. appliedCharacterStyle = mySt;
} else {
app.findTextPreferences. appliedParagraphStyle = mySt;
}

Reply
Eugenyus (29.05.2021 10:32) E-mail

Tomasz Kuc, thank you very much for providing the fix. I added it to the script and released an update to version 3.1.

Reply
Jeanette Ashman (09.11.2021 16:37) E-mail

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

Reply