2 Replies Latest reply on Jun 24, 2015 8:12 AM by subieguy2

    Alphabetize text frames, duplicate and make a list in order

    subieguy2 Level 3

      I am trying to take the selected text, sort it alphabetically, then duplicate all the text so it comes out in a list form.

      So if I had the following text selected....

      selected text.JPG

      And ran my script....which I have just a vague start on...

      #target illustrator
      var doc = app.activeDocument;
      var selectedItems = doc.selection;
      var alphaList = [];
      for (i = 0; i < selectedItems.length; i++){


      The results would be this....


      Anyone have any guidance for me? Thanks in advance!