left menu mob button

Thanks to everyone who said "thank you" by clicking the link:

Олег Е.
(23.12.2020):

За полезные скрипты и с Новым годом!

Фёдор Х.
(22.12.2020):

Большое спасибо!

Дмитрий
(20.06.2020):

За скрипт для работы с таблицами в Индизайне.


New Video on YouTube:

Comments

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)

bartbin
(11.06.2021 21:22):

Eugenyus, I use your two scripts with great joy and benefit: Split Table Row by Paragraphs and Split Text By Paragraphs. Thank you very much for them. They have saved me time and work many times. I found another very interesting Quick Formatting script on your blog. I copied the code into the Sublime text editor and saved it as a .jsx file type Unfortunately, it does not perform the main function. After pressing start, the inscription -not working- is displayed and the window with the choice of style does not appear. The script still does not make any changes to the text. I have Indesign 2020 Please, write if it's the program's fault or if I wrote something wrong. Thank you so much. Bartholomew

(Quick formatting)

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: 3

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

Leave a comment:

Name*:
E-mail*:
Comment text*:
Security code*: