How to creat a "The command is currently not available" script alert?

I'm working to construct a Configurator-like panel whose buttons play actions located on Photoshop's regular Actions panel.
I'm using Eclipse and the EB3 plug-in and have made decent progress.  Here is a sample of code from the Photoshop.jsx file that is executed for one of the buttons.
$._ext_CURVESLAYER={
    run : function() {   
        doAction('Curves', 'Adjustment-Layers');
Very basic.  Just a doAction command to find the necessary action set and action and play it.
When using Configurator and the necessary action is NOT present on Photoshop's regular Actions panel, a script alert is generated that says  "The command is currently not available"
The panel I've created using EB3 doesn't provide this alert.  Nothing happens when I click a button on the EB3 panel whose action is missing from Photoshop's regular actions panel.  I'd like to be able to generate some type of message, like this script alert, if the action in the doAction command doesn't run as expected.
It looks like Configurator may have used this code to generate this script alert base on the fact that it contains the words : "The command is currently not available"
function ps_invoke_action(actionSet, actionName)
    var action = decode(actionName);
    var group = decode(actionSet);
writelog("invoke action " + action + " " + group);
    ErrStrs = {};
ErrStrs.USER_CANCELLED=localize("$$$/ScriptingSupport/Error/UserCancelled=User cancelled the operation");
    try
app.doAction(action, group);
    catch(e)
        if (e.toString().indexOf(ErrStrs.USER_CANCELLED)!=-1) {;}
        else
alert(localize("$$$/ScriptingSupport/Error/CommandNotAvailable=The command is currently not available"));
I don't know Java at all, but I'm pretty sure this code doesn't work with the EB3 panels.  I tried copying it into the ext.js file and it had no effect.  (Most of this has been trial and error for me, and I thought that would be worth a try.)
Can anyone help me with the code I need to use to generate the appropriate script alert if the doAction command doesn't run properly and where to put it in the various files required for an EB3-generated panel?
Thanks!

Hi,
As per my knoledge, there is no automatted way to find out from which (Command line, Application and Script) the application is running. here
i am suggesting some guidelines as specified below.
1. Define standard arguments codes for the decrypt program like.
1 - for Application.
2 - for Script.
3 - others.
if(args[0] == 1)
Decrypt PWD
else if(args[0] == 2)
DO Some thing
else if(args[0] == 3)
DO Some thing
else
-- Do not Decrypt --

Similar Messages

  • My Canon MX310 Series Printer failed as the software "is currently not available from the Software Update Server"? What is the matter with Apple OSX Mountain Lion?

    Mountain Lion stopped working with our Canon MX310 Printer? Why is the software not available from the Software Update Server?

    The printer and ICA scanner driver is available from Apple. There is probably some other reason why you cannot get the drivers.
    You can also get the drivers from Canon.
    But reading your post it sounds like you were printing to the MX310 and recently it has stopped printing. Is this the case?

  • HT1222 How come I do the download then says not available?

    I'm trying to do the new update... And when it finishes it says not available

    The servers are probably overloaded with everyone trying to update to iOS 7 today.  You might need to wait and try again later. 

  • Action 'the command "make" is not currently available'. sometimes but not others

    CS5 Mac OSX
    I am making an action that uses an adjustment layer. when I go through the process without recording the action it woorks fine but when I record it the action always stops at the Make adjustment layer step with the error 'The command "Make" is not currently available.' I tried inserting that step through the adjustment layers panel, from the bottom of the layers panel, clipped and un-clipped, but I can't get it to work. I made a test action with only the make adjustment layer step and that worked but when I copied the step into the real action it broke again.
    how can I get this action to record?

    Not true.  Actions should pay just like they were recorded when played on a similar document.  Let make it easy open a new default document. You know a single white background layer.  Record the action on this document. Then close the document no save.  Open a new default document play the action is should work like it was recorded without error like when recorded.
    The sequence of steps to produce the error is quit simple you only need to do three things while recording the action.
    select green channel
    gaussian blur radius 1.2 px
    add adjustment layer a default curve for example.
    During the recording of this action Photoshop does four things but only records three. Before adding the Adjustment layer Photoshop switches from viewing the green channel to the layer the RGB channel  (which should recode select RGB Channel) and then add the Adjustment Layer, for your viewing the color image after the adjustment layer is added and the active channel in the channels palette is the Adjustment layer's layer mask. Lets say I'm wrong it did not switch to the RGB channel then you will also see that menu layer>New Adjustment Layer>Curves... is valid for it is not grayed out and it works while recording the action. The adjustment layer is added and recorded as make adjustment layer.
    The action recorder does not not record a switch with Select RGB Channel and when the action player tries to play the third step Make adjustment Layer fails with the error message make not currently  available. Why??  And why if you inserts a select RGB channel before the make adjustment layer then the action works.  Actions should play like they are recorded. When recording an action if Photoshop switches from a single channel to the RGB channel that should record select RGB channel or because menu layer>new adjustment layer>curves... is not grayed out when the green channel is the selected target and works manually so its available. Why then does Photoshop pop-up the message Make currently not available when the action step tries to execute.
    This is not a new bug it in all versions of Photoshop I still have installed. CS2, CS3, CS5 and CS6....

  • Save command currently not available

    Hi
    I have created a Photoshop plugin and it was working fine..Now suddenly I am facing an issue..On execution, I am getting an error "Save Command is currently not available". I have not changed anything in code. I am not able to trace the reason.
    Earlier I thought that it is space issue and I vacated memory in my system. But no luck.
    Please guide.
    Thanks

    Something has changed in my functions for doing batch actions in Bridge.  In CS5 Bridge I try to do a simple batch action of saving a DNG file as a jpg and closing the file.  When I attempt this I get a message saying 'The command "Save" is currently not available.
    Batch using tools menu from Bridge to reach Photoshop should work as expected in both CS4 and CS5. If not then there is something wrong on either your system or install.
    Go to Bridge CS5 preference and look for the section Start Up Scripts and see if there is still a Start Up Script for Photoshop CS5 present and with a checkmark in front for activation. If not try first to restart bridge holding down option key and choose refresh preferences. This should retrieve the original Start Up scripts again.
    If your command save as is not available check the action and see what the save path for that acton is. If it is a copied action from an other system changes are that it still contains the save path for the old drive and if the script can't find it it provides a warning message.
    Also check if the drive you save to has both read and write permission.

  • The command "Invert" is not currently available

    Although a long time PS veteran, (currently CS5), for some reason I just never really got into the actions. Well a few days ago I learned a technique for making pencil drawings from photos and I surprised that I actually liked the results. Since a client wanted me to do this to many images, I thought it would be foolish not to create an action for it so I did so but every time I try to run the action, about half way through, I get the following message.....The command "Invert" is not currently available.
    I've already done some searching about this problem and have already done the following suggestions:
    1. Check color mode of image
    2. Make sure "add mask by default is checked in the adjustment layers settings
    3. Make sure "add default masks on fill layer is checked in the layers panel options
    These are all fine. Any other ideas for this "Actions" newbie?
    THANKS!

    "It looks like you did not get back to the Black and White layer and duplicate it and name it details for details is a smart object layer not a normal layer like black and white layer."
    This ended up being the key.
    So I actually DID go back and start from scratch, since it's not all that long of a technique.  We all learn in different ways I guess.  As I made each step, I watched to see what was happening in the action that was being recorded.  I'm not exactly sure why but something dawned on me to experiment with and as it turned out, it was the right experiement!
    Here was the problem, when I was doing the step, "Go back to other B&W layer, duplicate it and name it detail", I duplicated the layer the exact same way that I have a million times before and that was to right click on the layer, which AUTOMATICALLY selects the layer and gives me the option to duplicate it and then I  duplicated it and moved it. 
    WELL, as far as actually accomplishing that particular task, it works perfectly fine, as it should,  BUT that's NOT how the action WANTED me to accomplish that particular task.  It WANTED me to SELECT the B&W layer FIRST by actually clicking on it and THEN right click on it and duplicate it.  When an ONLY when I took the extra step to select the layer first BEFORE right clicking and duplicating the layer was the action recorded in a way that worked when using it later.
    I am SO glad that I figured this out with your help.  I guess I'll have to study up on all of your links.  I guess the action wants you to perform certain steps in a partciular way or it gets tempermental.
    Thank you VERY much for sharing your time and expertise on this matter and setting me down the right path to figure this out.  Very kind of you!  Thanks for your patience.
    Randy

  • Lost preferences and when requesting a batch operation  the  error "The command "Batches" is currently not available."

    For CS6 when I started to work again I had lost screen preferences and when tried to run a batch operation I got the message "The command "Batches" is currently not available."  Where are these files stored and how can I restore them?

    Found IT !!!   For Windows - go to users appdata folder and windows has a file restore function.  restored Actions Palette.psp and Adobe Photoshop X64 CS6 Prefs.psp files to previous versions.  Works great.
    Alvin55

  • I can't open some photoshop files it says "The command "Set" is not currently available."

    What does this mean and how can I fix it? A corworker will make a photoshop file (Poster for example) and when i try to open it on my computer it wont open and says "The command “Set” is not currently available." What does this mean and how can I fix it? Thanks!

    You are running some sort of automation when you open files - because that error message comes from automation (actions, scripts or plugins) that are trying to target something that isn't there.
    Event Scripts was the obvious choice.
    Automation plugins, or Flash Panels are the next most obvious -- try disabling all third party plugins and Flash Panels.
    The error might come from Generator, if you have the latest Photoshop CC.

  • The command "place" is not currently available...action problem

    Hi everyone,
    I'm new to the forum and hope someone has had experience with this issue. I have tried googling it but have not found a solution. Here is my problem:
    I created an action to place a watermark on my images in CS4. I now use CS5 and have had no problems with this action previously...until today. I can no longer run it, as "the command "place" is not currently available" box keeps popping up no matter what image I attempt to watermark. Why would this action/command suddenly stop working?I switched back over to CS4 to test it out and it does not work there, either.
    Thank you in advance,
    Sarah

    If you don't have the toggle dialog enabled in the action, then perhaps the file
    your using for the watermark in no longer in the place (folder) where the action
    thinks it should be.
    MTSTUNER

  • The command "Import" is not currently available

    I am getting the error "The command "Import" is not currently available", when I try to use a custom Import plug-in inside a Photoshop action.  I am having trouble finding any information about this error.  Is the Import command not supported by PS Actions, or am I just doing something wrong?

    My Import plug-in accepts a single image filename to import.  I added scripting for the image filename, and recorded an action in the Actions palette.  So far so good.  Now I want to automate that action to do multiple imports using Automate->Batch.  So, in the Batch UI: I set Action to "myImportAction"; set source to "Folder"; check "Override Action 'open' command"; and "OK".
    This doesn't quite work.  Currently this opens the same image, (the one I specified when I recorded  "myImportAction") once for every image file in the Folder.  I'm not sure of the next step to pump the filenames from the specified folder through the plug-in. Is the problem in how I set up Automate->Batch?

  • How do I use the commands to start and restart the jmqbroker normally?

    How do I use the commands to start and restart the jmqbroker normally?
    Because I have tried to use "jmqcmd shutdown bkr" and then tried to type
    "jmqbroker" to start up. My screen hangs up and seems that the process
    hangs up. The message is
    [28/Jun/2002:18:29:07 GMT+08:00] [B1060]: Loading persistent data...
    [28/Jun/2002:18:29:08 GMT+08:00] [B1039]: Broker "jmqbroker" ready.
    The prompt is hanged until I press CTRL-C.
    Then I got the following message:
    [28/Jun/2002:18:32:07 GMT+08:00] [B1047]: Shutting down broker...
    [28/Jun/2002:18:32:07 GMT+08:00] [B1077]: Broadcast good-bye to all
    connections ....
    [28/Jun/2002:18:32:07 GMT+08:00] [B1078] Flushing good-bye messages
    [28/Jun/2002:18:32:07 GMT+08:00] [B1056] Cleaning up persistent
    store...
    [28/Jun/2002:18:32:07 GMT+08:00] proceessing 0 messages and cleaning
    up 0 files...
    [28/Jun/2002:18:32:07 GMT+08:00] [B1063] Done
    [28/Jun/2002:18:32:07 GMT+08:00] [B1048]: Shutdown of broker complete.
    Then, I use jmqadmin to invoke the console, I can start the broker
    again, it gives me
    Error encountered while connecting to the broker: "MyBroker":
    Broker Host: 'localhost'
    Primary Port: '7676'
    [C4003]: Error occurred on connection creation, - caught
    javax.jms.JMSException
    Please verify that there is a broker running on the specified host and
    port.
    I used ps -def | grep jmq there is no process anymore.
    Is it a bug? Would somebody have any idea on what went wrong?

    'jmqbroker' is the command to start a broker.
    When you type 'jmqbroker' in a command window,
    unless you put it in the background, the shell
    prompt won't return until the broker is shutdown.
    So when you see 'Broker "jmqbroker" ready.', it tells
    you that the broker is running and is ready.
    When you CTRL-C the process, it has the same effect
    as using jmqcmd to shutdown the broker. And so after that,
    there's no jmq processes running since you have just
    shutdown the broker.
    Remember that the jmqcmd/jmqadmin 'restart' command is to
    restart an already running broker. jmcmd/jmqadmin does
    not support starting a new broker instance.
    If you are using csh, end the jmqcmd command with an ampersand ("&")
    to have the broker running in the background. An alternative is to
    stop the process with Ctrl-Z then input the command "bg" to have that
    process resumed in the background.
    The problem with not being able to start a broker using the
    administration console is a documented limitation of the product that
    Yvonne also mentioned. Check the Administrator's Guide for that.

  • HT4897 I created an alias precisely because I wanted to make it the new default name and then quickly realized it wasn't possible. How long after deleting the alias will it become available again so that I can create a new account with it?

    I created an alias precisely because I wanted to make it the new default name and then quickly realized it wasn't possible. How long after deleting the alias will it become available again so that I can create a new account with it?
    I'm trying to make iCloud mail my primary email but I'm concerned that I may have lost the perfect email address forever.

    I have the same problem. After our wedding I've created an alias ([email protected]) to my actual AppleID Account ([email protected]). Now I'd the idea to delete the alias and my actual AppleID to create a new AppleID with ([email protected]).
    Is there really no possibilty to do this?
    Thanks in advance for quick and positive feedback.

  • In iPhoto 11, I know how to create new libraries.  I do not know how to split my existing large library into the new ones.

    In iPhoto 11, I know how to create new libraries.  I do not know how to split my large existing library into the new libraries?

    You need to use the iPhoto Library Manager.
    (66928)

  • How can I get the information of current BW system id?

    How can I get the information of current BW system id '0TCTSYSID' or 'LOGSYS'?
    thank your attention!

    Transaction SCC4 will give you the current logical system you are connected to (double click on the current client).
    Regards,
    Fred

  • How to check/find the size of current ROLLBACK segment in oracle 10g

    How to check/find the size of current ROLLBACK segment in oracle 10g ? Kindly help

    A rollback segment name like "_SYSSMU231$" is used when you have Automatic Undo Management enabled.
    The only relevant parameters are :
    1. UNDO_MANAGEMENT=AUTO
    2. UNDO_RETENTION=n minutes ==> this is what everyone should be interested in
    3. The sizes of the Undo Tablespace datafiles and whether AUTOEXTEND is ON or OFF
    No one should be interested in the size of a single undo segment when Automatic Undo Management is enabled.
    Possible causes of ORA-01555 errors in Automatic Undo Management
    a. UNDO_RETENTION is too low
    b. Undo tablespace is too small
    Hemant K Chitale

Maybe you are looking for