• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
4

Editing actions- replacing all of one kind/filtering

New Here ,
May 16, 2024 May 16, 2024

Copy link to clipboard

Copied

I've tried searching, but can't find anyone asking this so here we go:

Say I have a long photoshop action I recorded. I want to find and delete all "view/zoom" types of actions from it. Is there a way to filter all of those out and mass delete them?

 

I have tried the export to xml script posted elsewhere  but after 4 hours of trying to export (processing) I assumed it was too long and gave up. For work, most of these actions are very long and I see no easy way to replace/remove all of specific action types. Manual is very slow, and many get lost in the list when you scroll and try to do it manually (as in, hard to pick out) and not removed because of this. 

 

Does anyone know how this might be done? Or am I SOL? Thanks.

TOPICS
Actions and scripting , Windows

Views

118

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

People's Champ , May 16, 2024 May 16, 2024

It's not very clear what exactly you want to delete.

This script removes all "Make" commands from the ActionSet "Default Actions->Frame Channel - 50 pixel".

Modify it to suit yourself.

 

for (var i = 1; i < 100000; i++)
    {
    var r = new ActionReference();
    r.putIndex(stringIDToTypeID("command"), i);
    r.putName(stringIDToTypeID("action"), "Frame Channel - 50 pixel");
    r.putName(stringIDToTypeID("actionSet"), "Default Actions");

    var nm = executeActionGet(r).getString(stringIDToTyp
...

Votes

Translate

Translate
Adobe
LEGEND ,
May 16, 2024 May 16, 2024

Copy link to clipboard

Copied

Actions are not easy to edit even if you convert to XML. You can use the BatchPlay listing if you have UXP knowledge and edit that.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
May 16, 2024 May 16, 2024

Copy link to clipboard

Copied

It's not very clear what exactly you want to delete.

This script removes all "Make" commands from the ActionSet "Default Actions->Frame Channel - 50 pixel".

Modify it to suit yourself.

 

for (var i = 1; i < 100000; i++)
    {
    var r = new ActionReference();
    r.putIndex(stringIDToTypeID("command"), i);
    r.putName(stringIDToTypeID("action"), "Frame Channel - 50 pixel");
    r.putName(stringIDToTypeID("actionSet"), "Default Actions");

    var nm = executeActionGet(r).getString(stringIDToTypeID("name"));

//  alert(nm);

    if (nm == "Make")
        {
        var d = new ActionDescriptor();
        var r = new ActionReference();
        r.putIndex(stringIDToTypeID("command"), i);
        r.putName(stringIDToTypeID("action"), "Frame Channel - 50 pixel");
        r.putName(stringIDToTypeID("actionSet"), "Default Actions");
        d.putReference(stringIDToTypeID("null"), r);
        executeAction(stringIDToTypeID("delete"), d, DialogModes.NO);

        --i;
        }
    }

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 16, 2024 May 16, 2024

Copy link to clipboard

Copied

LATEST

This will do exactly what I want once edited. Thankyou!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 16, 2024 May 16, 2024

Copy link to clipboard

Copied

Can you share the action or unedited XML and a screenshot clearly indicating the action steps to be removed.

 

It's really easy to make a mistake when editing the XML, although tedious, it's much safer to just edit the action steps directly in Photoshop. Much easier to convert to JSX and edit that if you don't need to take it back to an action.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines