4 Replies Latest reply on Nov 21, 2013 12:27 PM by pixxxel schubser

    Illustrator Script code for removing selected items

    velocitygraphix Level 1

      Hello, I have an Illustrator script to go through certain functions and after it runs there are items selected that I need deleted. I cannot figure out the simple script to remove the selected items. I tried

       

      var docSelected = app.activeDocument.selection;

      docSelected.selected.remove();

       

      but to no avail. Please help. I would greatly appreciate any tips and suggestions as I just need to know how to have the script to delete selected items. Thank you very much!