• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Comment automatiser la recherche du nombrede blocs par page dans un grand nombre de pages?

New Here ,
Oct 13, 2020 Oct 13, 2020

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?

TOPICS
Feature request , Scripting

Views

228

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 13, 2020 Oct 13, 2020

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
...

Votes

Translate

Translate
Community Expert ,
Oct 13, 2020 Oct 13, 2020

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines