Update of Photoshop CC broken Try/Catch on ActionSets

Can anyone else, the latest version of Photoshop CC, confirm that an error message is be popped every time that you use a try/catch to try to perform an action that does not exist?  Here is an example of my code:

    try {
        var actionName = fr.getSubFeatureList.getPrimaryAction(feature); //Returns the first likely action name, a string variable such as "primary" which may or may not exist (in the case of the error, it does not)
        app.doAction(actionName,"saving");
    } catch(e) {
        //This is showing the error that should be getting caught and suppressed.
        //The rest of the statement works, but the error message is defeating the purpose of automation...
        //Error message: "The object 'action 'primary' of set 'saving' is not currently available."
        try {
            var actionName = fr.getSubFeatureList.getSecondaryAction(feature); //Returns a secondary action name if the first fails, such as "secondary"
            app.doAction(actionName,"saving");
        } catch(e1) {
            errLog.addError("The " + fr.getSubFeatureList.getPrimaryAction(feature) + " action could not be found.");
            return;
        }
    }

Can someone else confirm this problem?  It seems only to happen when dealing with actions and what happens on a statement which has been used without problem for several months until the last update.

Confirmed with this code:

try {}

app.doAction ("xxx", "Default Actions");

} catch (e) {}

Alert (e);

}

It behaves like this return to CS5. You must verify that the action exists before calling app.doAction. There are a few cases like this where an error occurs that cannot be treated with a try/catch block. Open a corrupted file image will do the same.

Curiously, I have code of years waiting for a throw exception. Don't know why, though. Have not already been used.

There is a function (psx.getActionSets ()) in ContactSheetII.jsx that returns an array of objects action game. You can use to check the action to execute in reality does not exist.

Tags: Photoshop

Similar Questions

Maybe you are looking for

  • Fast recovery of HP ProBook s 4730 disks

    Where can I get the quick recovery for my 4730 Hp's ProBook s disc? There's no Recovery Manager to create discs.

  • The lightscribe software

    Good evening boys. I want to know what happened the Lightscribe software, because wanting to improve, I found the writing: this site is no longer active. I have windows vista family 32-bit premium and microsoft security essential such as the antiviru

  • Estimate of exponential decay time constant - taking tangent lines

    Hello How would you estimate a first order decay time constant? I have a system that loses heat very slowly and I wish assess the time constant of the first part of the data in order to allow more frequent tests (I know it will end by decomposing to)

  • problem usb 16gig

    So my 16 gig Cruzer thumb drive out of nowhere Glide seems to have issues. I have it plugged into my computer and it shows in my devices but I have no option to display its content, add or format it somehow. I tried to uninstall and reinstall, no luc

  • EA6500 transmitted port but still filtered

    In this case no matter what I try, upnp, ipv6, firewall checked/unchecked. This happened when I upgraded my OS from Ubuntu 12.04 at 14.04 and had to install another version of emule. Firmware is up to date. Everything else works fine. EMule was worki