2 Replies Latest reply on Sep 9, 2013 1:26 PM by pixxxel schubser

    Attaching an action to a button in Javascript

    Prails.deisgn Level 1

      Hey guys,

       

      I'm playing around with attaching an action to a button in javascript but I'm just not getting it

       

      I've tried putting it into a function like so

       

       

      function deleteSwatches () {
          = app.doScript("Delete Unused Swatches", "Custom Art Actions");
          }
      

       

      Then calling the action with said function but it doesnt respond.

      Any ideas?