Skip to main content
Participant
January 30, 2014
Question

Type Callout

  • January 30, 2014
  • 1 reply
  • 475 views

Is there a script that will “call out” (with labels) the text attributes? Everything from character style to paragraph settings (like space after)?

I am looking for an automated solution that works like Colorbreaker (http://www.gluon.com/product-colorbreaker-id.html) for inDesign CC. I have a lot of documents that I need to specify the type and color for use in a Brand Guideline book.

This topic has been closed for replies.

1 reply

Trevor:
Legend
January 30, 2014

Just as a demo to show what info can be easily obtained (and not an answer)

Select some text and run this script.

#targetengine props

var select = app.selection[0];

if (!(select && select.hasOwnProperty ('textStyleRanges'))) {

    alert ("Select some text");

    exit();

    }

var   txtStyRan = select.textStyleRanges.everyItem().getElements().slice(0),

        l = txtStyRan.length,

        c = 0,

        selcProps = [], i, n, selct;

for (i = 0; i < l; i++) {

    selct = txtStyRan.properties;

    selcProps[c++] = "\r\r******   " + selct.contents + "  ******";

    for (n in selct) {

            try {selcProps[c++] = n + ": " + selct.toString() + ((selct.hasOwnProperty  ('name')) ? "(Name): " + selct.name : "");}

            catch (e) {selcProps[c++] = n + ": ** CAN'T ACCESS **";}

        };

}

var w = new Window ('palette'),

      e = w.add('edittext', [50,50, $.screens[0].right - 50, $.screens[0].bottom - 50], selcProps.join("\r"), {multiline: true});

w.show();