This is part of code and sorry I misstated at end of script. If STOP were at the end it works but unless we STOP it before step 77, the user doesn't have time to finish and no way to signal when finished so that the script can continue. Sorry for my mixup. See my comments in between code segments. RONC function step74(enabled, withDialog) { if (enabled != undefined && !enabled) return; var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO); var desc1 = new ActionDescriptor(); var ref1 = new ActionReference(); ref1.putProperty(PSClass.Channel, PSString.selection); desc1.putReference(PSKey.Target, ref1); desc1.putEnumerated(PSKey.To, PSType.Ordinal, PSEnum.None); executeAction(PSEvent.Set, desc1, dialogMode); }; // Select function step75(enabled, withDialog) { if (enabled != undefined && !enabled) return; var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO); var desc1 = new ActionDescriptor(); var ref1 = new ActionReference(); ref1.putClass(PSClass.EraserTool); desc1.putReference(PSKey.Target, ref1); executeAction(PSEvent.Select, desc1, dialogMode); }; //*************************************************************************************************** // We would like to complete this step or bypass it entirely with user saying so then continue to step 77. // Stop usage came over from ATN so not same as what I said as they didn't try to bypass step 75 //*************************************************************************************************** // Stop function step76(enabled, withDialog) { if (enabled != undefined && !enabled) return; var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO); var desc1 = new ActionDescriptor(); desc1.putString(PSKey.Message, "Stop for fixup.\r\rAfterwards, press Play to continue." ); desc1.putBoolean(PSKey.Continue, true); // Inserted by RONC not correct??? executeAction(PSEvent.Stop, desc1, dialogMode); }; // Set function step77(enabled, withDialog) { if (enabled != undefined && !enabled) return; var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO); var desc1 = new ActionDescriptor(); var ref1 = new ActionReference(); ref1.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target); desc1.putReference(PSKey.Target, ref1); var desc2 = new ActionDescriptor(); var list1 = new ActionList(); list1.putEnumerated(PSClass.Channel, PSKey.Red); desc2.putList(PSString.channelRestrictions, list1); var desc3 = new ActionDescriptor(); desc3.putUnitDouble(PSKey.Scale, PSUnit.Percent, 100); desc2.putObject(PSKey.LayerEffects, PSKey.LayerEffects, desc3); desc1.putObject(PSKey.To, PSClass.Layer, desc2); executeAction(PSEvent.Set, desc1, dialogMode); }; step74(); // Set step75(); // Select step76(true, true); // Stop step77(); // Set
... View more