1 Reply Latest reply on Jan 30, 2014 9:26 AM by Trevorׅ

    Type Callout

    BrollyUS Level 1

      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.

        • 1. Re: Type Callout
          Trevorׅ Adobe Community Professional

          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[i].properties;
              selcProps[c++] = "\r\r******   " + selct.contents + "  ******";
              for (n in selct) {
                      try {selcProps[c++] = n + ": " + selct[n].toString() + ((selct[n].hasOwnProperty  ('name')) ? "(Name): " + selct[n].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();