Copy link to clipboard
Copied
Bonjour.
Il arrive que par mégarde, lorsque je colle du texte, il se retrouve collé non pas là où je le souhaite mais dans un bloc de texte créé automatiquement. En général je vois que rien n'est collé là où je le voulais, je vois le bloc créé et peux le supprimer ou effectuer cmd-Z. Mais sur un document fréquemment mis à jour de plus de 250 pages comportant toutes 5 blocs de texte, j'oublie des blocs et, à moins de faire cmd+A page par page, je ne vois pas les blocs superfétatoires.
Existe-il une commande ou un plug-in permettant de montrer sur un tableau, comportant toutes les pages, le nombre de blocs de texte de chaque page? Ou mieux de m'indiquer les pages comportant un nombre de blocs supérieur à 5?
Here is a short .jsx script that would show you the pages with more than 5 text frames in the active document. For info on installing scripts, read this: https://indesignsecrets.com/how-to-install-a-script-in-indesign-that-you-found-in-a-forum-or-blog-post.php
var pageFinds = [];
var thePages = app.documents[0].pages.everyItem().getElements();
var tfs;
for (var i = 0; i < thePages.length; i++) {
tfs = thePages[i].textFrames;
if (tfs.length > 5) {
pageFinds.push(thePages[i].na
...
Copy link to clipboard
Copied
Here is a short .jsx script that would show you the pages with more than 5 text frames in the active document. For info on installing scripts, read this: https://indesignsecrets.com/how-to-install-a-script-in-indesign-that-you-found-in-a-forum-or-blog-po...
var pageFinds = [];
var thePages = app.documents[0].pages.everyItem().getElements();
var tfs;
for (var i = 0; i < thePages.length; i++) {
tfs = thePages[i].textFrames;
if (tfs.length > 5) {
pageFinds.push(thePages[i].name);
}
}
alert("Pages with more than 5 text frames:\n" + pageFinds.join("\n"));
Note: this will not count text frames in the pasteboard.