Announcement

Collapse
No announcement yet.

Clearing Action List

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Clearing Action List

    Hello,

    How to clear the action list?


    Please help.

  • #2
    Re: Clearing Action List

    Go under windows, and make sure actions are checked. Under the actions, click on the arrow to the right and it will bring up a list of things-one of which is clear all actions. Click on it. It will bring up a box asking you if you want to clear all of the actions. Click yes, or ok. Done

    Comment


    • #3
      Re: Clearing Action List

      select clear all action on the pop up window of actions

      Comment


      • #4
        Re: Clearing Action List

        Originally posted by Mrali View Post
        Hello,

        How to clear the action list?

        Please help.
        Do you mean "How to clear the action list?" - using a Javascript?

        Comment


        • #5
          Re: Clearing Action List

          Hello all,

          Sorry, I was not clear enough. Yes, I meant using script. Using VB if possible.
          If Javascript code is given, then I will have to understand it so I can convert it to VB.

          I have looked at photoshop object. I found Photoshop.ActionList. I tried the folllowing code but it did not work.

          Dim actlst As Photoshop.ActionList
          Dim Xcount
          Xcount = actlst.Count

          In the other hand, If I try photoshop.ArtLayers, will work, but I have to open an image first.

          Dim Xcount As Integer
          Set artLayerRef2 = docRef.ArtLayers
          Xcount = artLayerRef2.Count


          It is logical that I have to open an image so I get the number of layers. And ActionList, maybe should at least be one loaded action to clear the action list, which I have many actions in the action list. But it did not work!

          What other object should be envolved when clearing the action list?

          I tried the ScriptListener but it does not record any step when selecting clear
          all but it will give code when removing one single action.

          Pls help

          Thanks

          Comment


          • #6
            Re: Clearing Action List

            In case you didn't pick this up elsewhere, I have this in xtools:
            Code:
            Stdlib.deleteAllActionSets = function(confirmDelete) {
              if (confirmDelete != false) {
                if (!confirm("Do you really want to empty your Actions Palette?")) {
                  return;
                }
              }
            
              var sets = Stdlib.getActionSets();
            
              for (var i = sets.length-1; i >= 0; i--) {
                Stdlib.deleteActionSet(sets[i].name);
              }
            };
            -X

            Comment


            • #7
              Re: Clearing Action List

              Hello xbytor,
              Thanks again for your support. I have used your code for deleting all action list. The following code was saved in one sinlge file called stdlib.js
              But, it gives an error on ref.putIndex(cTID("ASet"), i) line of getActionSets function. Please help.

              deleteAllActionSets();

              function deleteAllActionSets(confirmDelete)
              {
              if (confirmDelete != false) {
              if (!confirm("Do you really want to empty your Actions Palette?")) {
              return;
              }
              }

              var sets = getActionSets();

              for (var i = sets.length-1; i >= 0; i--) {
              deleteActionSet(sets[i].name);
              }
              };



              function getActionSets()
              {
              var i = 1;

              var sets = [];


              while (true)
              {

              var ref = new ActionReference();

              ref.putIndex(cTID("ASet"), i);

              var desc;
              var lvl = $.level;

              $.level = 0;
              try
              {

              desc = executeActionGet(ref);

              }
              catch (e)
              {
              break;
              // all done

              }
              finally
              {

              $.level = lvl;

              }

              if (desc.hasKey(cTID("Nm ")))
              {
              var set = {};

              set.index = i;

              set.name = desc.getString(cTID("Nm "));

              set.toString = function()
              {
              return this.name;
              };


              set.count = desc.getInteger(cTID("NmbC"));

              set.actions = [];

              for (var j = 1;
              j <= set.count; j++)
              {
              var ref = new ActionReference();

              ref.putIndex(cTID('Actn'), j);

              ref.putIndex(cTID('ASet'), set.index);

              var adesc = executeActionGet(ref);

              var actName = adesc.getString(cTID('Nm '));

              set.actions.push(actName);

              }
              sets.push(set);

              }

              i++;

              }

              return sets;


              };

              Comment


              • #8
                Re: Clearing Action List

                You need to add this at the top of the script:

                cTID = function(s) { return app.charIDToTypeID(s); };

                -X

                Comment

                Related Topics

                Collapse

                • Scribe
                  Combining Photoshop Actions Into a Set
                  by Scribe
                  Can someone please tell me if it is possible to take a group of individual actions, that have already been installed, and collect them into their own, new action set?

                  I have tried creating a new set and then dragging the targeted actions individually into the new set, but they don't go...
                  10-22-2005, 08:39 PM
                • inskip
                  Basic Actions question
                  by inskip
                  I saw lots of threads for types of actions, but not the basic info I'm looking for. I've never used actions before...

                  If I want to load a pre-made action, it's just as simple as clicking on load action in the actions pop out menu, then I select the action from wherever it's stored on...
                  08-06-2005, 01:45 PM
                • Jon
                  Strange behavior in PS7.0
                  by Jon
                  I need some help. All of a sudden tonight when I started running my actions in PS, a dialogue box will pop up asking me to click ok to continue running the action. It never used to act strangely like this. There must be a toggle to suppress dialogue boxes such as this that I'm missing completely....
                  09-05-2002, 09:17 PM
                • tubeamp
                  Downloaded a PS action but ???
                  by tubeamp
                  It is called "Gothic View" and it ended up in "My Documents". Unzipped it and it opened PH7 but I can't find it to use it in PhotoShop7. Thanks for any help!!
                  05-16-2004, 05:48 PM
                • TnOiOnL
                  Can someone shed some light on how to use Actions?
                  by TnOiOnL
                  I'm trying to land a job at a studio where Actions are always used. I've never used them and am trying to play around with some of the default actions I have on my PS, but am not really getting very far. I keep searching for an answer and am not getting very far.

                  Any insight on this or...
                  12-13-2007, 06:56 AM
                Working...
                X