Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

396
Vistas
Alert "Completed" everytime after specific action applied in photoshop

I want to get a Javascript alert when a user in photoshop apply a action by click. check this Screenshot .Here, When user click on gray color action will be applied after that it should give a alert that completed.

i tried below this code, but its not working. Looking forward your help.

app.actions["actionName"].onComplete(function(){ alert('action name - completed') })

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You'll want a function that will call the action. In my example, I've got an action that flattens all the layers. Just replace the name of the action and it's action set with the one you want ("Check new with trim").

// Play action
// replace these parameters with your own
play_action("Flatten layers", "My Favourite Actions");

function play_action(actName, actSet)
{
    // =======================================================
    var idPly = charIDToTypeID( "Ply " );
    var desc1784 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
    var ref572 = new ActionReference();
    var idActn = charIDToTypeID( "Actn" );
    ref572.putName( idActn, actName ); // Action name
    var idASet = charIDToTypeID( "ASet" );
    ref572.putName( idASet, actSet ); // Action set name
    desc1784.putReference( idnull, ref572 );
    executeAction( idPly, desc1784, DialogModes.NO );

    alert("action " + actName + " complete.")
}
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda