Skip to main content
Participant
February 23, 2012
Answered

Actions Pause for function keys

  • February 23, 2012
  • 1 reply
  • 1218 views

I have created an action using a script which duplicates the merged layers. It does this fine but when I assign a function key shortcut it pauses after the new layer is created until I tap with my pen or click the mouse.

Also there is no pause in the action panel itself. This is just a result of running the action through a function key.

Is there anyway around this "pause?"

This topic has been closed for replies.
Correct answer JJMack

Seems related to F10.  If I use F2 no Problem, F10 Problem...

1 reply

JJMack
Community Expert
Community Expert
February 23, 2012

I have recorded many action that use scripts so I just assign f2 to one and had no problem and there was no pause when I used F2 to run the action. Please post the Acrion and Script.

JJMack
Participant
February 23, 2012
#target photoshop
function dupeLayer() {
    if (app.documents.length == 0) {
      alert('NO document open?');
      return;
      }
  else {
      var docRef = app.activeDocument;
      var actLay = docRef.activeLayer;
      actLay.name = "Original";
      var newLayer = docRef.artLayers.add();
      var idMrgV = charIDToTypeID( "MrgV" );
      var desc5 = new ActionDescriptor();
      var idDplc = charIDToTypeID( "Dplc" );
      desc5.putBoolean( idDplc, true );
      executeAction( idMrgV, desc5, DialogModes.NO );

}

}

dupeLayer();

This script is supposed to run when I press F10. F10 is not tied to any other shortcuts, in fact no function keys in my setup are tied to shortcuts other than actions.

JJMack
Community Expert
JJMackCommunity ExpertCorrect answer
Community Expert
February 23, 2012

Seems related to F10.  If I use F2 no Problem, F10 Problem...

JJMack