3 Replies Latest reply on Nov 11, 2013 2:20 PM by Gustavo Del Vechio

    finalizing code according to conditional

    Ferrarezzi

      Hello to all

       

      I am a beginner I have this code and would like to finish it according to parole but do not know the command to do it.

       

      var docRef = activeDocument;

      var selectedItems = app.docRef.selection;

       

      if (selectedItems.lenght < 1) {

      alert("No object is selected.")

       

      }

       

      Could anyone help me?