blog/

Скрипт, который расставляет номера в текстовых блоках InDesign

Sorry, this entry is not available in English.

InDesign script to put numbers in text boxes.
Написал короткий скрипт, который расставляет номера в текстовых блоках InDesign.

// Script by Ivan Tolstikov @dmtrvk.ru

try {
    if (!app.selection[0]) {
        throw ("You need to select some text first.");
        exit();
    }
    placeNumbers();
    //alert ("user entered" + userResponse);
} catch (e) {
    alert(e);
}

function placeNumbers() {
    for (i = 0; i < (app.selection.length); i++) {
        //app.selection[0].characters[i] = i; 
  str = i+1;
  app.selection[i].contents=str.toString();
    }
}

 


Similar Posts:


Subscribe!

Instagram
VK
Facebook
YouTube!
Telegram!

Subscribe to mail list



* clicking the ‘Subscribe’ button you agree that your personal data will be processed