文章目录

    • 1.插件界面
    • 2.关键代码
    • 3.作者寄语

  PS是一款栅格图像编辑软件,具有许多强大的功能,本文演示如何通过脚本实现多重调整锐化 (Web)相关功能,展示从互联网收集而来的一个小插件,供大家学习交流,请勿用于商业用途。

1.插件界面

  本文界面是一系列功能的一部分,将逐步展示,但是功能界面是共同的,如下图所示:
在这里插入图片描述

2.关键代码

  大家可通过源代码阅读,来掌握相关技巧,源代码如下:

if (ScriptUI.environment.keyboardState.shiftKey) {function LongEdgeManualResize() {function step1(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.Document, PSType.Ordinal, PSEnum.First);desc1.putReference(PSString.Null, ref1);desc1.putString(PSKey.Name, "Sharpen");executeAction(PSEvent.Duplicate, desc1, dialogMode);}function step2(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();desc1.putUnitDouble(PSKey.Height, PSUnit.Pixels, 850);desc1.putBoolean(PSString.scaleStyles, true);desc1.putBoolean(PSKey.ConstrainProportions, true);desc1.putEnumerated(PSKey.Interpolation, PSType.Interpolation, PSEnum.Bilinear);executeAction(sTID("imageSize"), desc1, dialogMode);}function step3(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.Layer);desc1.putReference(PSString.Null, ref1);desc1.putInteger(PSKey.LayerID, 39);executeAction(PSEvent.Make, desc1, dialogMode);}function step4(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();desc1.putBoolean(PSEvent.Duplicate, true);executeAction(sTID("mergeVisible"), desc1, dialogMode);}function step5(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "Temp");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step6(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;executeAction(PSEvent.Desaturate, undefined, dialogMode);}function step7(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;executeAction(sTID("copyToLayer"), undefined, dialogMode);}function step8(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "1");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step9(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;executeAction(sTID("copyToLayer"), undefined, dialogMode);}function step10(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "2");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step11(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;executeAction(sTID("copyToLayer"), undefined, dialogMode);}function step12(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "3");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step13(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;executeAction(sTID("copyToLayer"), undefined, dialogMode);}function step14(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "4");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step15(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();desc1.putEnumerated(PSString.presetKind, PSString.presetKindType, PSString.presetKindCustom);desc1.putBoolean(PSString.useLegacy, false);desc1.putUnitDouble(PSKey.Amount, PSUnit.Percent, 500);desc1.putUnitDouble(PSKey.Radius, PSUnit.Pixels, 0.2);desc1.putUnitDouble(sTID("noiseReduction"), PSUnit.Percent, 0);desc1.putEnumerated(PSKey.Blur, PSString.blurType, PSString.lensBlur);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Amount, PSUnit.Percent, 100);desc2.putUnitDouble(PSKey.Width, PSUnit.Percent, 100);desc2.putInteger(PSKey.Radius, 1);desc1.putObject(PSKey.HighlightMode, sTID("adaptCorrectTones"), desc2);executeAction(sTID("smartSharpen"), desc1, dialogMode);}function step16(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var desc2 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(PSClass.Channel, PSClass.Channel, PSEnum.RGB);ref1.putName(PSClass.Layer, "Temp");desc2.putReference(PSKey.To, ref1);desc2.putEnumerated(PSKey.Calculation, PSType.Calculation, PSEnum.Subtract);desc2.putDouble(PSKey.Scale, 1);desc2.putInteger(PSKey.Offset, 128);desc1.putObject(PSKey.With, PSKey.Calculation, desc2);executeAction(sTID("applyImageEvent"), desc1, dialogMode);}function step17(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putEnumerated(PSKey.Mode, PSType.BlendMode, PSString.linearLight);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step18(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "3 Shadows");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step19(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;executeAction(sTID("copyToLayer"), undefined, dialogMode);}function step20(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "3 Lights");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step21(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 75);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step22(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();var list1 = new ActionList();var desc3 = new ActionDescriptor();var ref2 = new ActionReference();ref2.putEnumerated(PSClass.Channel, PSClass.Channel, PSEnum.Gray);desc3.putReference(PSClass.Channel, ref2);desc3.putInteger(PSKey.SrcBlackMin, 128);desc3.putInteger(PSKey.SrcBlackMax, 128);desc3.putInteger(PSKey.SrcWhiteMin, 255);desc3.putInteger(PSKey.SrcWhiteMax, 255);desc3.putInteger(PSKey.DestBlackMin, 0);desc3.putInteger(PSKey.DestBlackMax, 0);desc3.putInteger(PSKey.DestWhiteMin, 255);desc3.putInteger(PSEvent.Desaturate, 255);list1.putObject(PSClass.BlendRange, desc3);desc2.putList(PSClass.BlendRange, list1);var desc4 = new ActionDescriptor();desc4.putUnitDouble(PSKey.Scale, PSUnit.Percent, 333.333333333333);desc2.putObject(PSKey.LayerEffects, PSKey.LayerEffects, desc4);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step23(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "3 Shadows");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(44);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step24(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();var list1 = new ActionList();var desc3 = new ActionDescriptor();var ref2 = new ActionReference();ref2.putEnumerated(PSClass.Channel, PSClass.Channel, PSEnum.Gray);desc3.putReference(PSClass.Channel, ref2);desc3.putInteger(PSKey.SrcBlackMin, 0);desc3.putInteger(PSKey.SrcBlackMax, 0);desc3.putInteger(PSKey.SrcWhiteMin, 128);desc3.putInteger(PSKey.SrcWhiteMax, 128);desc3.putInteger(PSKey.DestBlackMin, 0);desc3.putInteger(PSKey.DestBlackMax, 0);desc3.putInteger(PSKey.DestWhiteMin, 255);desc3.putInteger(PSEvent.Desaturate, 255);list1.putObject(PSClass.BlendRange, desc3);desc2.putList(PSClass.BlendRange, list1);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step25(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "3 Lights");desc1.putReference(PSString.Null, ref1);desc1.putEnumerated(PSString.selectionModifier, PSString.selectionModifierType, PSString.addToSelectionContinuous);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(44);list1.putInteger(sTID("skinTone"), 45);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step26(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putClass(PSString.layerGroup);desc1.putReference(PSString.Null, ref1);var ref2 = new ActionReference();ref2.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target);desc1.putReference(PSKey.From, ref2);desc1.putInteger(PSString.layerGroupStart, 46);desc1.putInteger(PSString.layerGroupEnd, 47);desc1.putString(PSKey.Name, "Group 1");executeAction(PSEvent.Make, desc1, dialogMode);}function step27(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "Sharpen");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step28(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var list1 = new ActionList();var ref1 = new ActionReference();ref1.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target);list1.putReference(ref1);desc1.putList(PSString.Null, list1);executeAction(PSEvent.Hide, desc1, dialogMode);}function step29(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "3");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(43);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step30(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "Lights");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step31(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();desc1.putUnitDouble(PSKey.Amount, PSUnit.Percent, 100);desc1.putUnitDouble(PSKey.Radius, PSUnit.Pixels, 1.5);desc1.putInteger(PSKey.Threshold, 0);executeAction(sTID("unsharpMask"), desc1, dialogMode);}function step32(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var desc2 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(PSClass.Channel, PSClass.Channel, PSEnum.RGB);ref1.putName(PSClass.Layer, "Temp");desc2.putReference(PSKey.To, ref1);desc2.putEnumerated(PSKey.Calculation, PSType.Calculation, PSEnum.Subtract);desc2.putDouble(PSKey.Scale, 1);desc2.putInteger(PSKey.Offset, 128);desc1.putObject(PSKey.With, PSKey.Calculation, desc2);executeAction(sTID("applyImageEvent"), desc1, dialogMode);}function step33(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "2 Lights");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step34(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 75);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step35(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "2");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(42);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step36(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();desc1.putUnitDouble(PSKey.Amount, PSUnit.Percent, 100);desc1.putUnitDouble(PSKey.Radius, PSUnit.Pixels, 2.5);desc1.putInteger(PSKey.Threshold, 0);executeAction(sTID("unsharpMask"), desc1, dialogMode);}function step37(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var desc2 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(PSClass.Channel, PSClass.Channel, PSEnum.RGB);ref1.putName(PSClass.Layer, "Temp");desc2.putReference(PSKey.To, ref1);desc2.putEnumerated(PSKey.Calculation, PSType.Calculation, PSEnum.Subtract);desc2.putDouble(PSKey.Scale, 1);desc2.putInteger(PSKey.Offset, 128);desc1.putObject(PSKey.With, PSKey.Calculation, desc2);executeAction(sTID("applyImageEvent"), desc1, dialogMode);}function step38(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putEnumerated(PSKey.Mode, PSType.BlendMode, PSEnum.Overlay);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step39(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();var list1 = new ActionList();var desc3 = new ActionDescriptor();var ref2 = new ActionReference();ref2.putEnumerated(PSClass.Channel, PSClass.Channel, PSEnum.Gray);desc3.putReference(PSClass.Channel, ref2);desc3.putInteger(PSKey.SrcBlackMin, 0);desc3.putInteger(PSKey.SrcBlackMax, 0);desc3.putInteger(PSKey.SrcWhiteMin, 128);desc3.putInteger(PSKey.SrcWhiteMax, 128);desc3.putInteger(PSKey.DestBlackMin, 0);desc3.putInteger(PSKey.DestBlackMax, 0);desc3.putInteger(PSKey.DestWhiteMin, 255);desc3.putInteger(PSEvent.Desaturate, 255);list1.putObject(PSClass.BlendRange, desc3);desc2.putList(PSClass.BlendRange, list1);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step40(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "2 Shadows");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step41(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "2 Lights");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(43);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step42(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();var list1 = new ActionList();var desc3 = new ActionDescriptor();var ref2 = new ActionReference();ref2.putEnumerated(PSClass.Channel, PSClass.Channel, PSEnum.Gray);desc3.putReference(PSClass.Channel, ref2);desc3.putInteger(PSKey.SrcBlackMin, 128);desc3.putInteger(PSKey.SrcBlackMax, 128);desc3.putInteger(PSKey.SrcWhiteMin, 255);desc3.putInteger(PSKey.SrcWhiteMax, 255);desc3.putInteger(PSKey.DestBlackMin, 0);desc3.putInteger(PSKey.DestBlackMax, 0);desc3.putInteger(PSKey.DestWhiteMin, 255);desc3.putInteger(PSEvent.Desaturate, 255);list1.putObject(PSClass.BlendRange, desc3);desc2.putList(PSClass.BlendRange, list1);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step43(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putEnumerated(PSKey.Mode, PSType.BlendMode, PSEnum.Overlay);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step44(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "2 Shadows");desc1.putReference(PSString.Null, ref1);desc1.putEnumerated(PSString.selectionModifier, PSString.selectionModifierType, PSString.addToSelectionContinuous);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(42);list1.putInteger(sTID("skinTone"), 43);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step45(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putClass(PSString.layerGroup);desc1.putReference(PSString.Null, ref1);var ref2 = new ActionReference();ref2.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target);desc1.putReference(PSKey.From, ref2);desc1.putInteger(PSString.layerGroupStart, 48);desc1.putInteger(PSString.layerGroupEnd, 49);desc1.putString(PSKey.Name, "Group 1");executeAction(PSEvent.Make, desc1, dialogMode);}function step46(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "Micro Contrast");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step47(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var list1 = new ActionList();var ref1 = new ActionReference();ref1.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target);list1.putReference(ref1);desc1.putList(PSString.Null, list1);executeAction(PSEvent.Hide, desc1, dialogMode);}function step48(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "1");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(41);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step49(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();desc1.putUnitDouble(PSKey.Radius, PSUnit.Pixels, 5);desc1.putInteger(PSKey.Threshold, 15);executeAction(sTID("surfaceBlur"), desc1, dialogMode);}function step50(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var desc2 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(PSClass.Channel, PSClass.Channel, PSEnum.RGB);ref1.putName(PSClass.Layer, "Temp");desc2.putReference(PSKey.To, ref1);desc2.putEnumerated(PSKey.Calculation, PSType.Calculation, PSEnum.Subtract);desc2.putDouble(PSKey.Scale, 1);desc2.putInteger(PSKey.Offset, 128);desc1.putObject(PSKey.With, PSKey.Calculation, desc2);executeAction(sTID("applyImageEvent"), desc1, dialogMode);}function step51(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;executeAction(PSEvent.Invert, undefined, dialogMode);}function step52(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putEnumerated(PSKey.Mode, PSType.BlendMode, PSEnum.Overlay);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step53(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "1 Texture Enhance");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step54(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 18);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step55(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "Micro Contrast");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(48);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step56(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var list1 = new ActionList();var ref1 = new ActionReference();ref1.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target);list1.putReference(ref1);desc1.putList(PSString.Null, list1);executeAction(PSEvent.Show, desc1, dialogMode);}function step57(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 25);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step58(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "2 Micro Contrast");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step59(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "Sharpen");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(46);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step60(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var list1 = new ActionList();var ref1 = new ActionReference();ref1.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target);list1.putReference(ref1);desc1.putList(PSString.Null, list1);executeAction(PSEvent.Show, desc1, dialogMode);}function step61(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "3 Sharpen");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step62(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 30);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step63(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "Temp");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(40);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step64(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(PSString.Null, ref1);var list1 = new ActionList();list1.putInteger(40);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Delete, desc1, dialogMode);}function step65(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "3 Sharpen");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(46);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step66(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "3 Sharpen");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(47);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step67(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 30);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step68(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "2 Micro Contrast");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(49);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step69(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 30);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step70(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "1 Texture Enhance");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(42);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step71(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 22);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step72(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 25);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step73(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "3 Sharpen");desc1.putReference(PSString.Null, ref1);desc1.putEnumerated(PSString.selectionModifier, PSString.selectionModifierType, PSString.addToSelectionContinuous);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(42);list1.putInteger(sTID("skinTone"), 43);list1.putInteger(sTID("contentAware"), 44);list1.putInteger(PSString.shapeburst, 49);list1.putInteger(PSString.average, 45);list1.putInteger(PSString.subsample, 46);list1.putInteger(PSString.pdf13, 47);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}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.putClass(PSString.layerGroup);desc1.putReference(PSString.Null, ref1);var ref2 = new ActionReference();ref2.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target);desc1.putReference(PSKey.From, ref2);desc1.putInteger(PSString.layerGroupStart, 53);desc1.putInteger(PSString.layerGroupEnd, 54);desc1.putString(PSKey.Name, "Group 1");executeAction(PSEvent.Make, desc1, dialogMode);}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.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target);desc1.putReference(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "Multi Sharpen");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step76(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "3 Sharpen");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(47);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}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.putName(PSClass.Layer, "1 Texture Enhance");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(42);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step78(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "1 Lights + Shadows");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step79(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putClass(PSString.layerGroup);desc1.putReference(PSString.Null, ref1);var ref2 = new ActionReference();ref2.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target);desc1.putReference(PSKey.From, ref2);desc1.putInteger(PSString.layerGroupStart, 53);desc1.putInteger(PSString.layerGroupEnd, 54);desc1.putString(PSKey.Name, "Group 1");executeAction(PSEvent.Make, desc1, dialogMode);}function step80(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "1 Texture Enhance");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step81(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "2 Micro Contrast");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(49);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step82(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "3 Sharpen");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(47);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step83(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 30);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step84(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.MenuItem, PSType.MenuItem, PSEnum.ActualPixels);desc1.putReference(PSString.Null, ref1);executeAction(PSEvent.Select, desc1, dialogMode);}step1();step2(true, true);step3();step4();step5();step6();step7();step8();step9();step10();step11();step12();step13();step14();step15();step16();step17();step18();step19();step20();step21();step22();step23();step24();step25();step26();step27();step28();step29();step30();step31();step32();step33();step34();step35();step36();step37();step38();step39();step40();step41();step42();step43();step44();step45();step46();step47();step48();step49();step50();step51();step52();step53();step54();step55();step56();step57();step58();step59();step60();step61();step62();step63();step64();step65();step66();step67();step68();step69();step70();step71();step72();step73();step74();step75();step76();step77();step78();step79();step80();step81();step82();step83();step84();}cTID = function(s) {return app.charIDToTypeID(s);};sTID = function(s) {return app.stringIDToTypeID(s);};LongEdgeManualResize.loadSymbols = function() {var dbgLevel = $.level;$.level = 0;try {PSConstants;return;} catch (e) {} finally {$.level = dbgLevel;}var needDefs = true;$.level = 0;try {PSClass;needDefs = false;} catch (e) {} finally {$.level = dbgLevel;}if (needDefs) {PSClass = function() {};PSEnum = function() {};PSEvent = function() {};PSForm = function() {};PSKey = function() {};PSType = function() {};PSUnit = function() {};PSString = function() {};}PSClass.BlendRange = cTID("Blnd");PSClass.Channel = cTID("Chnl");PSClass.Document = cTID("Dcmn");PSClass.Layer = cTID("Lyr ");PSClass.MenuItem = cTID("Mn  ");PSEnum.ActualPixels = cTID("ActP");PSEnum.Bilinear = cTID("Blnr");PSEnum.First = cTID("Frst");PSEnum.Gray = cTID("Gry ");PSEnum.Overlay = cTID("Ovrl");PSEnum.RGB = cTID("RGB ");PSEnum.Subtract = cTID("Sbtr");PSEnum.Target = cTID("Trgt");PSEvent.Delete = cTID("Dlt ");PSEvent.Desaturate = cTID("Dstt");PSEvent.Duplicate = cTID("Dplc");PSEvent.Hide = cTID("Hd  ");PSEvent.Invert = cTID("Invr");PSEvent.Make = cTID("Mk  ");PSEvent.Select = cTID("slct");PSEvent.Set = cTID("setd");PSEvent.Show = cTID("Shw ");PSKey.Amount = cTID("Amnt");PSKey.Blur = cTID("blur");PSKey.Calculation = cTID("Clcl");PSKey.ConstrainProportions = cTID("CnsP");PSKey.DestBlackMax = cTID("Dstl");PSKey.DestBlackMin = cTID("DstB");PSKey.DestWhiteMin = cTID("DstW");PSKey.From = cTID("From");PSKey.Height = cTID("Hght");PSKey.HighlightMode = cTID("hglM");PSKey.Interpolation = cTID("Intr");PSKey.LayerEffects = cTID("Lefx");PSKey.LayerID = cTID("LyrI");PSKey.MakeVisible = cTID("MkVs");PSKey.Mode = cTID("Md  ");PSKey.Name = cTID("Nm  ");PSKey.Offset = cTID("Ofst");PSKey.Opacity = cTID("Opct");PSKey.Radius = cTID("Rds ");PSKey.Scale = cTID("Scl ");PSKey.SrcBlackMax = cTID("Srcl");PSKey.SrcBlackMin = cTID("SrcB");PSKey.SrcWhiteMax = cTID("Srcm");PSKey.SrcWhiteMin = cTID("SrcW");PSKey.Threshold = cTID("Thsh");PSKey.To = cTID("T   ");PSKey.Width = cTID("Wdth");PSKey.With = cTID("With");PSString.Null = sTID("null");PSString.addToSelectionContinuous = sTID("addToSelectionContinuous");PSString.average = sTID("average");PSString.blurType = sTID("blurType");PSString.layerGroup = sTID("layerSection");PSString.layerGroupEnd = sTID("layerSectionEnd");PSString.layerGroupStart = sTID("layerSectionStart");PSString.lensBlur = sTID("lensBlur");PSString.linearLight = sTID("linearLight");PSString.pdf13 = sTID("pdf13");PSString.presetKind = sTID("presetKind");PSString.presetKindCustom = sTID("presetKindCustom");PSString.presetKindType = sTID("presetKindType");PSString.scaleStyles = sTID("scaleStyles");PSString.selectionModifier = sTID("selectionModifier");PSString.selectionModifierType = sTID("selectionModifierType");PSString.shapeburst = sTID("shapeburst");PSString.subsample = sTID("subsample");PSString.useLegacy = sTID("useLegacy");PSType.BlendMode = cTID("BlnM");PSType.Calculation = cTID("Clcn");PSType.Interpolation = cTID("Intp");PSType.MenuItem = cTID("MnIt");PSType.Ordinal = cTID("Ordn");PSUnit.Percent = cTID("#Prc");PSUnit.Pixels = cTID("#Pxl");};LongEdgeManualResize.loadSymbols();LongEdgeManualResize.main = function() {LongEdgeManualResize();};LongEdgeManualResize.main();
} else {function LongEdge() {function step1(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.Document, PSType.Ordinal, PSEnum.First);desc1.putReference(PSString.Null, ref1);desc1.putString(PSKey.Name, "Sharpen");executeAction(PSEvent.Duplicate, desc1, dialogMode);}function step2(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();desc1.putUnitDouble(PSKey.Height, PSUnit.Pixels, 850);desc1.putBoolean(PSString.scaleStyles, true);desc1.putBoolean(PSKey.ConstrainProportions, true);desc1.putEnumerated(PSKey.Interpolation, PSType.Interpolation, PSEnum.Bilinear);executeAction(sTID("imageSize"), desc1, dialogMode);}function step3(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.Layer);desc1.putReference(PSString.Null, ref1);desc1.putInteger(PSKey.LayerID, 39);executeAction(PSEvent.Make, desc1, dialogMode);}function step4(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();desc1.putBoolean(PSEvent.Duplicate, true);executeAction(sTID("mergeVisible"), desc1, dialogMode);}function step5(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "Temp");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step6(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;executeAction(PSEvent.Desaturate, undefined, dialogMode);}function step7(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;executeAction(sTID("copyToLayer"), undefined, dialogMode);}function step8(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "1");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step9(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;executeAction(sTID("copyToLayer"), undefined, dialogMode);}function step10(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "2");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step11(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;executeAction(sTID("copyToLayer"), undefined, dialogMode);}function step12(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "3");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step13(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;executeAction(sTID("copyToLayer"), undefined, dialogMode);}function step14(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "4");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step15(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();desc1.putEnumerated(PSString.presetKind, PSString.presetKindType, PSString.presetKindCustom);desc1.putBoolean(PSString.useLegacy, false);desc1.putUnitDouble(PSKey.Amount, PSUnit.Percent, 500);desc1.putUnitDouble(PSKey.Radius, PSUnit.Pixels, 0.2);desc1.putUnitDouble(sTID("noiseReduction"), PSUnit.Percent, 0);desc1.putEnumerated(PSKey.Blur, PSString.blurType, PSString.lensBlur);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Amount, PSUnit.Percent, 100);desc2.putUnitDouble(PSKey.Width, PSUnit.Percent, 100);desc2.putInteger(PSKey.Radius, 1);desc1.putObject(PSKey.HighlightMode, sTID("adaptCorrectTones"), desc2);executeAction(sTID("smartSharpen"), desc1, dialogMode);}function step16(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var desc2 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(PSClass.Channel, PSClass.Channel, PSEnum.RGB);ref1.putName(PSClass.Layer, "Temp");desc2.putReference(PSKey.To, ref1);desc2.putEnumerated(PSKey.Calculation, PSType.Calculation, PSEnum.Subtract);desc2.putDouble(PSKey.Scale, 1);desc2.putInteger(PSKey.Offset, 128);desc1.putObject(PSKey.With, PSKey.Calculation, desc2);executeAction(sTID("applyImageEvent"), desc1, dialogMode);}function step17(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putEnumerated(PSKey.Mode, PSType.BlendMode, PSString.linearLight);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step18(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "3 Shadows");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step19(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;executeAction(sTID("copyToLayer"), undefined, dialogMode);}function step20(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "3 Lights");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step21(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 75);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step22(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();var list1 = new ActionList();var desc3 = new ActionDescriptor();var ref2 = new ActionReference();ref2.putEnumerated(PSClass.Channel, PSClass.Channel, PSEnum.Gray);desc3.putReference(PSClass.Channel, ref2);desc3.putInteger(PSKey.SrcBlackMin, 128);desc3.putInteger(PSKey.SrcBlackMax, 128);desc3.putInteger(PSKey.SrcWhiteMin, 255);desc3.putInteger(PSKey.SrcWhiteMax, 255);desc3.putInteger(PSKey.DestBlackMin, 0);desc3.putInteger(PSKey.DestBlackMax, 0);desc3.putInteger(PSKey.DestWhiteMin, 255);desc3.putInteger(PSEvent.Desaturate, 255);list1.putObject(PSClass.BlendRange, desc3);desc2.putList(PSClass.BlendRange, list1);var desc4 = new ActionDescriptor();desc4.putUnitDouble(PSKey.Scale, PSUnit.Percent, 333.333333333333);desc2.putObject(PSKey.LayerEffects, PSKey.LayerEffects, desc4);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step23(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "3 Shadows");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(44);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step24(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();var list1 = new ActionList();var desc3 = new ActionDescriptor();var ref2 = new ActionReference();ref2.putEnumerated(PSClass.Channel, PSClass.Channel, PSEnum.Gray);desc3.putReference(PSClass.Channel, ref2);desc3.putInteger(PSKey.SrcBlackMin, 0);desc3.putInteger(PSKey.SrcBlackMax, 0);desc3.putInteger(PSKey.SrcWhiteMin, 128);desc3.putInteger(PSKey.SrcWhiteMax, 128);desc3.putInteger(PSKey.DestBlackMin, 0);desc3.putInteger(PSKey.DestBlackMax, 0);desc3.putInteger(PSKey.DestWhiteMin, 255);desc3.putInteger(PSEvent.Desaturate, 255);list1.putObject(PSClass.BlendRange, desc3);desc2.putList(PSClass.BlendRange, list1);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step25(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "3 Lights");desc1.putReference(PSString.Null, ref1);desc1.putEnumerated(PSString.selectionModifier, PSString.selectionModifierType, PSString.addToSelectionContinuous);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(44);list1.putInteger(sTID("skinTone"), 45);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step26(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putClass(PSString.layerGroup);desc1.putReference(PSString.Null, ref1);var ref2 = new ActionReference();ref2.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target);desc1.putReference(PSKey.From, ref2);desc1.putInteger(PSString.layerGroupStart, 46);desc1.putInteger(PSString.layerGroupEnd, 47);desc1.putString(PSKey.Name, "Group 1");executeAction(PSEvent.Make, desc1, dialogMode);}function step27(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "Sharpen");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step28(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var list1 = new ActionList();var ref1 = new ActionReference();ref1.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target);list1.putReference(ref1);desc1.putList(PSString.Null, list1);executeAction(PSEvent.Hide, desc1, dialogMode);}function step29(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "3");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(43);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step30(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "Lights");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step31(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();desc1.putUnitDouble(PSKey.Amount, PSUnit.Percent, 100);desc1.putUnitDouble(PSKey.Radius, PSUnit.Pixels, 1.5);desc1.putInteger(PSKey.Threshold, 0);executeAction(sTID("unsharpMask"), desc1, dialogMode);}function step32(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var desc2 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(PSClass.Channel, PSClass.Channel, PSEnum.RGB);ref1.putName(PSClass.Layer, "Temp");desc2.putReference(PSKey.To, ref1);desc2.putEnumerated(PSKey.Calculation, PSType.Calculation, PSEnum.Subtract);desc2.putDouble(PSKey.Scale, 1);desc2.putInteger(PSKey.Offset, 128);desc1.putObject(PSKey.With, PSKey.Calculation, desc2);executeAction(sTID("applyImageEvent"), desc1, dialogMode);}function step33(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "2 Lights");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step34(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 75);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step35(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "2");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(42);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step36(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();desc1.putUnitDouble(PSKey.Amount, PSUnit.Percent, 100);desc1.putUnitDouble(PSKey.Radius, PSUnit.Pixels, 2.5);desc1.putInteger(PSKey.Threshold, 0);executeAction(sTID("unsharpMask"), desc1, dialogMode);}function step37(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var desc2 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(PSClass.Channel, PSClass.Channel, PSEnum.RGB);ref1.putName(PSClass.Layer, "Temp");desc2.putReference(PSKey.To, ref1);desc2.putEnumerated(PSKey.Calculation, PSType.Calculation, PSEnum.Subtract);desc2.putDouble(PSKey.Scale, 1);desc2.putInteger(PSKey.Offset, 128);desc1.putObject(PSKey.With, PSKey.Calculation, desc2);executeAction(sTID("applyImageEvent"), desc1, dialogMode);}function step38(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putEnumerated(PSKey.Mode, PSType.BlendMode, PSEnum.Overlay);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step39(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();var list1 = new ActionList();var desc3 = new ActionDescriptor();var ref2 = new ActionReference();ref2.putEnumerated(PSClass.Channel, PSClass.Channel, PSEnum.Gray);desc3.putReference(PSClass.Channel, ref2);desc3.putInteger(PSKey.SrcBlackMin, 0);desc3.putInteger(PSKey.SrcBlackMax, 0);desc3.putInteger(PSKey.SrcWhiteMin, 128);desc3.putInteger(PSKey.SrcWhiteMax, 128);desc3.putInteger(PSKey.DestBlackMin, 0);desc3.putInteger(PSKey.DestBlackMax, 0);desc3.putInteger(PSKey.DestWhiteMin, 255);desc3.putInteger(PSEvent.Desaturate, 255);list1.putObject(PSClass.BlendRange, desc3);desc2.putList(PSClass.BlendRange, list1);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step40(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "2 Shadows");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step41(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "2 Lights");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(43);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step42(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();var list1 = new ActionList();var desc3 = new ActionDescriptor();var ref2 = new ActionReference();ref2.putEnumerated(PSClass.Channel, PSClass.Channel, PSEnum.Gray);desc3.putReference(PSClass.Channel, ref2);desc3.putInteger(PSKey.SrcBlackMin, 128);desc3.putInteger(PSKey.SrcBlackMax, 128);desc3.putInteger(PSKey.SrcWhiteMin, 255);desc3.putInteger(PSKey.SrcWhiteMax, 255);desc3.putInteger(PSKey.DestBlackMin, 0);desc3.putInteger(PSKey.DestBlackMax, 0);desc3.putInteger(PSKey.DestWhiteMin, 255);desc3.putInteger(PSEvent.Desaturate, 255);list1.putObject(PSClass.BlendRange, desc3);desc2.putList(PSClass.BlendRange, list1);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step43(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putEnumerated(PSKey.Mode, PSType.BlendMode, PSEnum.Overlay);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step44(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "2 Shadows");desc1.putReference(PSString.Null, ref1);desc1.putEnumerated(PSString.selectionModifier, PSString.selectionModifierType, PSString.addToSelectionContinuous);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(42);list1.putInteger(sTID("skinTone"), 43);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step45(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putClass(PSString.layerGroup);desc1.putReference(PSString.Null, ref1);var ref2 = new ActionReference();ref2.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target);desc1.putReference(PSKey.From, ref2);desc1.putInteger(PSString.layerGroupStart, 48);desc1.putInteger(PSString.layerGroupEnd, 49);desc1.putString(PSKey.Name, "Group 1");executeAction(PSEvent.Make, desc1, dialogMode);}function step46(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "Micro Contrast");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step47(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var list1 = new ActionList();var ref1 = new ActionReference();ref1.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target);list1.putReference(ref1);desc1.putList(PSString.Null, list1);executeAction(PSEvent.Hide, desc1, dialogMode);}function step48(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "1");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(41);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step49(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();desc1.putUnitDouble(PSKey.Radius, PSUnit.Pixels, 5);desc1.putInteger(PSKey.Threshold, 15);executeAction(sTID("surfaceBlur"), desc1, dialogMode);}function step50(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var desc2 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(PSClass.Channel, PSClass.Channel, PSEnum.RGB);ref1.putName(PSClass.Layer, "Temp");desc2.putReference(PSKey.To, ref1);desc2.putEnumerated(PSKey.Calculation, PSType.Calculation, PSEnum.Subtract);desc2.putDouble(PSKey.Scale, 1);desc2.putInteger(PSKey.Offset, 128);desc1.putObject(PSKey.With, PSKey.Calculation, desc2);executeAction(sTID("applyImageEvent"), desc1, dialogMode);}function step51(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;executeAction(PSEvent.Invert, undefined, dialogMode);}function step52(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putEnumerated(PSKey.Mode, PSType.BlendMode, PSEnum.Overlay);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step53(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "1 Texture Enhance");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step54(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 18);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step55(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "Micro Contrast");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(48);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step56(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var list1 = new ActionList();var ref1 = new ActionReference();ref1.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target);list1.putReference(ref1);desc1.putList(PSString.Null, list1);executeAction(PSEvent.Show, desc1, dialogMode);}function step57(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 25);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step58(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "2 Micro Contrast");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step59(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "Sharpen");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(46);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step60(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var list1 = new ActionList();var ref1 = new ActionReference();ref1.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target);list1.putReference(ref1);desc1.putList(PSString.Null, list1);executeAction(PSEvent.Show, desc1, dialogMode);}function step61(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "3 Sharpen");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step62(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 30);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step63(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "Temp");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(40);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step64(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(PSString.Null, ref1);var list1 = new ActionList();list1.putInteger(40);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Delete, desc1, dialogMode);}function step65(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "3 Sharpen");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(46);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step66(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "3 Sharpen");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(47);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step67(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 30);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step68(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "2 Micro Contrast");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(49);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step69(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 30);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step70(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "1 Texture Enhance");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(42);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step71(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 22);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step72(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 25);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step73(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "3 Sharpen");desc1.putReference(PSString.Null, ref1);desc1.putEnumerated(PSString.selectionModifier, PSString.selectionModifierType, PSString.addToSelectionContinuous);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(42);list1.putInteger(sTID("skinTone"), 43);list1.putInteger(sTID("contentAware"), 44);list1.putInteger(PSString.shapeburst, 49);list1.putInteger(PSString.average, 45);list1.putInteger(PSString.subsample, 46);list1.putInteger(PSString.pdf13, 47);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}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.putClass(PSString.layerGroup);desc1.putReference(PSString.Null, ref1);var ref2 = new ActionReference();ref2.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target);desc1.putReference(PSKey.From, ref2);desc1.putInteger(PSString.layerGroupStart, 53);desc1.putInteger(PSString.layerGroupEnd, 54);desc1.putString(PSKey.Name, "Group 1");executeAction(PSEvent.Make, desc1, dialogMode);}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.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target);desc1.putReference(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "Multi Sharpen");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step76(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "3 Sharpen");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(47);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}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.putName(PSClass.Layer, "1 Texture Enhance");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(42);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step78(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "1 Lights + Shadows");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step79(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putClass(PSString.layerGroup);desc1.putReference(PSString.Null, ref1);var ref2 = new ActionReference();ref2.putEnumerated(PSClass.Layer, PSType.Ordinal, PSEnum.Target);desc1.putReference(PSKey.From, ref2);desc1.putInteger(PSString.layerGroupStart, 53);desc1.putInteger(PSString.layerGroupEnd, 54);desc1.putString(PSKey.Name, "Group 1");executeAction(PSEvent.Make, desc1, dialogMode);}function step80(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putString(PSKey.Name, "1 Texture Enhance");desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step81(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "2 Micro Contrast");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(49);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step82(enabled, withDialog) {if (enabled != undefined && !enabled) {return;}var dialogMode = withDialog ? DialogModes.ALL : DialogModes.NO;var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(PSClass.Layer, "3 Sharpen");desc1.putReference(PSString.Null, ref1);desc1.putBoolean(PSKey.MakeVisible, false);var list1 = new ActionList();list1.putInteger(47);desc1.putList(PSKey.LayerID, list1);executeAction(PSEvent.Select, desc1, dialogMode);}function step83(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(PSString.Null, ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(PSKey.Opacity, PSUnit.Percent, 30);desc1.putObject(PSKey.To, PSClass.Layer, desc2);executeAction(PSEvent.Set, desc1, dialogMode);}function step84(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.MenuItem, PSType.MenuItem, PSEnum.ActualPixels);desc1.putReference(PSString.Null, ref1);executeAction(PSEvent.Select, desc1, dialogMode);}step1();step2();step3();step4();step5();step6();step7();step8();step9();step10();step11();step12();step13();step14();step15();step16();step17();step18();step19();step20();step21();step22();step23();step24();step25();step26();step27();step28();step29();step30();step31();step32();step33();step34();step35();step36();step37();step38();step39();step40();step41();step42();step43();step44();step45();step46();step47();step48();step49();step50();step51();step52();step53();step54();step55();step56();step57();step58();step59();step60();step61();step62();step63();step64();step65();step66();step67();step68();step69();step70();step71();step72();step73();step74();step75();step76();step77();step78();step79();step80();step81();step82();step83();step84();}cTID = function(s) {return app.charIDToTypeID(s);};sTID = function(s) {return app.stringIDToTypeID(s);};LongEdge.loadSymbols = function() {var dbgLevel = $.level;$.level = 0;try {PSConstants;return;} catch (e) {} finally {$.level = dbgLevel;}var needDefs = true;$.level = 0;try {PSClass;needDefs = false;} catch (e) {} finally {$.level = dbgLevel;}if (needDefs) {PSClass = function() {};PSEnum = function() {};PSEvent = function() {};PSForm = function() {};PSKey = function() {};PSType = function() {};PSUnit = function() {};PSString = function() {};}PSClass.BlendRange = cTID("Blnd");PSClass.Channel = cTID("Chnl");PSClass.Document = cTID("Dcmn");PSClass.Layer = cTID("Lyr ");PSClass.MenuItem = cTID("Mn  ");PSEnum.ActualPixels = cTID("ActP");PSEnum.Bilinear = cTID("Blnr");PSEnum.First = cTID("Frst");PSEnum.Gray = cTID("Gry ");PSEnum.Overlay = cTID("Ovrl");PSEnum.RGB = cTID("RGB ");PSEnum.Subtract = cTID("Sbtr");PSEnum.Target = cTID("Trgt");PSEvent.Delete = cTID("Dlt ");PSEvent.Desaturate = cTID("Dstt");PSEvent.Duplicate = cTID("Dplc");PSEvent.Hide = cTID("Hd  ");PSEvent.Invert = cTID("Invr");PSEvent.Make = cTID("Mk  ");PSEvent.Select = cTID("slct");PSEvent.Set = cTID("setd");PSEvent.Show = cTID("Shw ");PSKey.Amount = cTID("Amnt");PSKey.Blur = cTID("blur");PSKey.Calculation = cTID("Clcl");PSKey.ConstrainProportions = cTID("CnsP");PSKey.DestBlackMax = cTID("Dstl");PSKey.DestBlackMin = cTID("DstB");PSKey.DestWhiteMin = cTID("DstW");PSKey.From = cTID("From");PSKey.Height = cTID("Hght");PSKey.HighlightMode = cTID("hglM");PSKey.Interpolation = cTID("Intr");PSKey.LayerEffects = cTID("Lefx");PSKey.LayerID = cTID("LyrI");PSKey.MakeVisible = cTID("MkVs");PSKey.Mode = cTID("Md  ");PSKey.Name = cTID("Nm  ");PSKey.Offset = cTID("Ofst");PSKey.Opacity = cTID("Opct");PSKey.Radius = cTID("Rds ");PSKey.Scale = cTID("Scl ");PSKey.SrcBlackMax = cTID("Srcl");PSKey.SrcBlackMin = cTID("SrcB");PSKey.SrcWhiteMax = cTID("Srcm");PSKey.SrcWhiteMin = cTID("SrcW");PSKey.Threshold = cTID("Thsh");PSKey.To = cTID("T   ");PSKey.Width = cTID("Wdth");PSKey.With = cTID("With");PSString.Null = sTID("null");PSString.addToSelectionContinuous = sTID("addToSelectionContinuous");PSString.average = sTID("average");PSString.blurType = sTID("blurType");PSString.layerGroup = sTID("layerSection");PSString.layerGroupEnd = sTID("layerSectionEnd");PSString.layerGroupStart = sTID("layerSectionStart");PSString.lensBlur = sTID("lensBlur");PSString.linearLight = sTID("linearLight");PSString.pdf13 = sTID("pdf13");PSString.presetKind = sTID("presetKind");PSString.presetKindCustom = sTID("presetKindCustom");PSString.presetKindType = sTID("presetKindType");PSString.scaleStyles = sTID("scaleStyles");PSString.selectionModifier = sTID("selectionModifier");PSString.selectionModifierType = sTID("selectionModifierType");PSString.shapeburst = sTID("shapeburst");PSString.subsample = sTID("subsample");PSString.useLegacy = sTID("useLegacy");PSType.BlendMode = cTID("BlnM");PSType.Calculation = cTID("Clcn");PSType.Interpolation = cTID("Intp");PSType.MenuItem = cTID("MnIt");PSType.Ordinal = cTID("Ordn");PSUnit.Percent = cTID("#Prc");PSUnit.Pixels = cTID("#Pxl");};LongEdge.loadSymbols();LongEdge.main = function() {LongEdge();};LongEdge.main();
}

3.作者寄语

  合理的脚本代码可以有效的提高工作效率,减少重复劳动。


  欢迎光临知了软件开发网络平台,本公司定制开发各类软件,主要方向为桌面专业软件开发、插件定制开发、微信小程序(各类小程序)、网站定制开发和App开发,桌面软件主要包括文字图形识别类软件,信息管理类软件,3D打印类软件,视频类软件以及其它涉及专业的各类图形图像处理软件。插件包含AE插件,AI插件,PS插件,PDF插件,3DMAX插件以及Word,Excel等Office插件开发。详情请咨询,微信QQ:312117271,手机:18928899728,邮箱: anjingzhi_sea@163.com.
公司网址:http://www.zhiliaos.com

查看全文
如若内容造成侵权/违法违规/事实不符,请联系编程学习网邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

相关文章

  1. 每日一书丨这是一本演示如何在实际应用中利用设计模式的书

    Julia是一个为开发出高性能应用程序而设计的高级编程语言,旨在提高开发人员的生产力。其动态特性可以让你快速做一个小规模的测试,然后移植到大的应用程序中。 它的内省工具可以通过分析高级代码如何翻译成低级代码及机器码来实现性能优化。它的元编程更…...

    2024/4/27 16:21:03
  2. 【蓝桥杯国赛真题14】Scratch玛雅神庙 少儿编程scratch蓝桥杯国赛真题和答案讲解

    scratch玛雅神庙 一、题目要求...

    2024/4/22 21:10:09
  3. 2022-2028年中国纺织机械行业投资分析及前景预测报告(全卷)

    【报告类型】产业研究 【出版时间】即时更新(交付时间约3个工作日) 【发布机构】智研瞻产业研究院 【报告格式】PDF版 本报告介绍了纺织机械行业相关概述、中国纺织机械行业运行环境、分析了中国纺织机械行业的现状、中国纺织机械行业竞争格局、对中…...

    2024/4/14 16:41:58
  4. 2022-2028年中国输变电设备行业投资分析及前景预测报告(全卷)

    【报告类型】产业研究 【出版时间】即时更新(交付时间约3个工作日) 【发布机构】智研瞻产业研究院 【报告格式】PDF版 本报告介绍了输变电设备行业相关概述、中国输变电设备行业运行环境、分析了中国输变电设备行业的现状、中国输变电设备行业竞争格…...

    2024/4/19 7:41:16
  5. oeasy教您玩转vim - 87 - # 内容查找grep命令

    内容查找 grep 回忆 上次我们尝试了一下各种在vi中执行外部程序 可以排序可以改大小写还可以用管道直接对于缓冲buffer文件进行操作还是很方便的 其实还有一个外部命令很重要 根据内容搜索grep这个怎么和vim配合呢?🤔 在终端的grep 写一个oeasy.txt保存…...

    2024/4/14 16:41:53
  6. 应聘的16个经典面试问题回答思路

    面试过程中,面试官会向应聘者发问,而应聘者的回答将成为面试官考虑是否接受他的重要依据。对应聘者而言,了解这些问题背后的“猫腻”至关重要。本文对面试中经常出现的一些典型问题进行了整理,并给出相应的回答思路和参考答案。读…...

    2024/4/5 5:11:27
  7. 【OpenCV 完整例程】71. 连续函数的取样

    【OpenCV 完整例程】71. 连续函数的取样 欢迎关注 『OpenCV 完整例程 100 篇』 系列,持续更新中 欢迎关注 『Python小白的OpenCV学习课』 系列,持续更新中 1.2 连续函数的取样 连续函数必须经过取样和量化转换为离散函数,才能用计算机进行处…...

    2024/4/18 22:34:26
  8. 网络世界中的侦察兵----ICMP

    前言 学习了IP协议后,都知道IP协议本身是不提供可靠性保障的,那么数据包在这么复杂的互联网环境中传输,总会遇到问题,如果遇到问题后,被丢弃、无回应,可能作为工程师的我们来说都不知道发生了什么事&#…...

    2024/4/14 16:42:03
  9. 频数表和列联表的使用

    数据使用的是Kock&Edward(1988),一项风湿性关节炎新疗法的双盲临床试验的结果。 其中Treatment为治疗情况,表示为两种:Treated(用药治疗)、Placebo(安慰剂治疗),improved为改善…...

    2024/4/14 16:42:13
  10. ctfshow 网络迷踪-国足加油

    8 国足加油 通过百度识图 这是2018年世界杯亚洲区预选赛 再通过查阅资料,这并不是2018年的比赛 比赛地点为陕西省体育场 经过不断尝试得到 ctfshow{2016年3月29日圣朱雀体育场}...

    2024/4/18 9:51:54
  11. 机器学习--岭回归03

    学习目标: 机器学习----岭回归 学习内容: 1、 岭回归 学习记录: 岭回归 模型: import sklearn.linear_model as lm #创建模型 model lm.Ridge(正则强度,fit_intercept是否训练截距,max_iter最大迭代次数) # 训练模…...

    2024/4/7 4:27:03
  12. [java数据结构与算法-链表(万金油LinkedList)]

    链表一.链表1.链表定义2.动态链表3.单链表3.1代码实现3.1.1结点定义3.1.2链表的成员变量定义3.1.3将一个数组转换为链表。3.1.4添加元素3.1.5删除元素3.1.6通过角标查看元素和修改元素3.1.7通过元素找角标3.1.8排序3.1.9切割子串3.1.10toString方法,与迭代器的实现。…...

    2024/4/14 16:41:43
  13. 人生四种赚钱方式

    善于借钱生钱的犹太商人往往也是利用机遇的高手。在犹太人眼里善于借用机遇的人往往能够发挥自己的聪明才智。当机遇来临时,有智慧的商人会毫不犹豫地大举借钱,然后周密策划,精心运营,最终收获到别人所不敢想的利益。 犹太金融大鳄…...

    2024/4/19 14:00:44
  14. 手动安装Nginx(Linux)

    第一步: 下载 在nginx官网下载想要的nginx版本安装包,推荐下载稳定版。 第二步: 上传 找到上面下载的nginx安装包,然后在文件夹栏输入cmd,进入cmd界面。输入scp nginx-1.20.2.tar.gz root119.91.194.100:/root &…...

    2024/4/14 16:41:53
  15. 【Python数据分析考试:必会题】Python中pandas的设置选项函数pd.set_option()方法

    选择题 以下python代码的含义是什么? pd.set_option(display.max_columns,None) pd.set_option(display.max_rows,5) 选项: A 显示所有列;显示前2行,后2行,中间用省略号代替 B 不显示列名;显示前2行,后…...

    2024/4/7 4:26:59
  16. LinuxCentos7安装wkhtmltopdf

    原文链接:LinuxCentos7安装wkhtmltopdf 2022-01-18 6:11 早 LinuxCentos7安装wkhtmltopdf wkhtmltopdf html转换pdf插件,在做转换之前一直本着不装插件原则,分别尝试了 mpdf、fpdf、html2pdf,实现效果与原图相差较大&…...

    2024/4/19 9:20:21
  17. Go语言基础(五)——指针

    指针 指针的值是存储变量的 地址。一个指针指示值所在的位置。不是所有的值都有地址,但是所有的变量一定都有。 指针可以在不知道变量名的情况下,间接读取或更新变量的值。 获取值的地址 通过 & 符号可以获取变量的地址,*号获取指针指…...

    2024/4/19 5:26:32
  18. 前端与HTML语法

    1.什么是HTML 超文本标记语言制作网页的标准语言HTML语言不区分大小写 2.前端应该关注的方面 功能,美观,性能,安全,无障碍 3.常用标签 3.1标题字标签 以某几种固定的字号显示的字一般用于强调段落要表现的内容或作为文章的标…...

    2024/4/14 16:41:48
  19. python数据类型

    int 整型 print(int) # 浮点型(小数) # 整形(int)是没有小数点的数值型(number) print(1, type(1)) float 浮点型(小数) print(flo…...

    2024/4/20 15:15:12
  20. 【数学建模】数学建模指导:建模常用算法应用场景解析

    优化模型 1.1 数学规划模型 线性规划、整数线性规划、非线性规划、多目标规划、动态规划。 1.2 微分方程组模型 阻滞增长模型、SARS传播模型。 1.3 图论与网络优化问题 最短路径问题、网络最大流问题、最小费用最大流问题、最小生成树问题(MST)、旅行商问题(TSP)、图的着色…...

    2024/4/14 16:41:58

最新文章

  1. 抖音小店无货源怎么做?新手五步运营法,简单又实用!

    大家好,我是电商糖果 很多朋友开抖店之前,对电商没有一点基础。 这个时候就会出现一种非常尴尬的情况,就是店铺开好之后,不知道怎么运营。 糖果做电商有7年时间了,做抖音小店也有四年多了。 现在也开了多家小店&am…...

    2024/4/27 18:07:54
  2. 梯度消失和梯度爆炸的一些处理方法

    在这里是记录一下梯度消失或梯度爆炸的一些处理技巧。全当学习总结了如有错误还请留言,在此感激不尽。 权重和梯度的更新公式如下: w w − η ⋅ ∇ w w w - \eta \cdot \nabla w ww−η⋅∇w 个人通俗的理解梯度消失就是网络模型在反向求导的时候出…...

    2024/3/20 10:50:27
  3. Stable Diffusion 本地部署教程

    Stable Diffusion 是一个开源的本地部署的软件,用于在本地网络中进行消息传递和同步。下面是 Stable Diffusion 的本地部署教程: 安装稳定扩散软件:首先,您需要从 Stable Diffusion 的官方网站或 GitHub 页面上下载并安装 Stable …...

    2024/4/26 12:59:46
  4. LeetCode-46. 全排列【数组 回溯】

    LeetCode-46. 全排列【数组 回溯】 题目描述:解题思路一:回溯。回溯三部曲解题思路二:0解题思路三:0 题目描述: 给定一个不含重复数字的数组 nums ,返回其 所有可能的全排列 。你可以 按任意顺序 返回答案…...

    2024/4/26 19:51:44
  5. 【外汇早评】美通胀数据走低,美元调整

    原标题:【外汇早评】美通胀数据走低,美元调整昨日美国方面公布了新一期的核心PCE物价指数数据,同比增长1.6%,低于前值和预期值的1.7%,距离美联储的通胀目标2%继续走低,通胀压力较低,且此前美国一季度GDP初值中的消费部分下滑明显,因此市场对美联储后续更可能降息的政策…...

    2024/4/26 18:09:39
  6. 【原油贵金属周评】原油多头拥挤,价格调整

    原标题:【原油贵金属周评】原油多头拥挤,价格调整本周国际劳动节,我们喜迎四天假期,但是整个金融市场确实流动性充沛,大事频发,各个商品波动剧烈。美国方面,在本周四凌晨公布5月份的利率决议和新闻发布会,维持联邦基金利率在2.25%-2.50%不变,符合市场预期。同时美联储…...

    2024/4/26 20:12:18
  7. 【外汇周评】靓丽非农不及疲软通胀影响

    原标题:【外汇周评】靓丽非农不及疲软通胀影响在刚结束的周五,美国方面公布了新一期的非农就业数据,大幅好于前值和预期,新增就业重新回到20万以上。具体数据: 美国4月非农就业人口变动 26.3万人,预期 19万人,前值 19.6万人。 美国4月失业率 3.6%,预期 3.8%,前值 3…...

    2024/4/26 23:05:52
  8. 【原油贵金属早评】库存继续增加,油价收跌

    原标题:【原油贵金属早评】库存继续增加,油价收跌周三清晨公布美国当周API原油库存数据,上周原油库存增加281万桶至4.692亿桶,增幅超过预期的74.4万桶。且有消息人士称,沙特阿美据悉将于6月向亚洲炼油厂额外出售更多原油,印度炼油商预计将每日获得至多20万桶的额外原油供…...

    2024/4/27 4:00:35
  9. 【外汇早评】日本央行会议纪要不改日元强势

    原标题:【外汇早评】日本央行会议纪要不改日元强势近两日日元大幅走强与近期市场风险情绪上升,避险资金回流日元有关,也与前一段时间的美日贸易谈判给日本缓冲期,日本方面对汇率问题也避免继续贬值有关。虽然今日早间日本央行公布的利率会议纪要仍然是支持宽松政策,但这符…...

    2024/4/27 17:58:04
  10. 【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响

    原标题:【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响近日伊朗局势升温,导致市场担忧影响原油供给,油价试图反弹。此时OPEC表态稳定市场。据消息人士透露,沙特6月石油出口料将低于700万桶/日,沙特已经收到石油消费国提出的6月份扩大出口的“适度要求”,沙特将满…...

    2024/4/27 14:22:49
  11. 【外汇早评】美欲与伊朗重谈协议

    原标题:【外汇早评】美欲与伊朗重谈协议美国对伊朗的制裁遭到伊朗的抗议,昨日伊朗方面提出将部分退出伊核协议。而此行为又遭到欧洲方面对伊朗的谴责和警告,伊朗外长昨日回应称,欧洲国家履行它们的义务,伊核协议就能保证存续。据传闻伊朗的导弹已经对准了以色列和美国的航…...

    2024/4/26 21:56:58
  12. 【原油贵金属早评】波动率飙升,市场情绪动荡

    原标题:【原油贵金属早评】波动率飙升,市场情绪动荡因中美贸易谈判不安情绪影响,金融市场各资产品种出现明显的波动。随着美国与中方开启第十一轮谈判之际,美国按照既定计划向中国2000亿商品征收25%的关税,市场情绪有所平复,已经开始接受这一事实。虽然波动率-恐慌指数VI…...

    2024/4/27 9:01:45
  13. 【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试

    原标题:【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试美国和伊朗的局势继续升温,市场风险情绪上升,避险黄金有向上突破阻力的迹象。原油方面稍显平稳,近期美国和OPEC加大供给及市场需求回落的影响,伊朗局势并未推升油价走强。近期中美贸易谈判摩擦再度升级,美国对中…...

    2024/4/27 17:59:30
  14. 【原油贵金属早评】市场情绪继续恶化,黄金上破

    原标题:【原油贵金属早评】市场情绪继续恶化,黄金上破周初中国针对于美国加征关税的进行的反制措施引发市场情绪的大幅波动,人民币汇率出现大幅的贬值动能,金融市场受到非常明显的冲击。尤其是波动率起来之后,对于股市的表现尤其不安。隔夜美国股市出现明显的下行走势,这…...

    2024/4/25 18:39:16
  15. 【外汇早评】美伊僵持,风险情绪继续升温

    原标题:【外汇早评】美伊僵持,风险情绪继续升温昨日沙特两艘油轮再次发生爆炸事件,导致波斯湾局势进一步恶化,市场担忧美伊可能会出现摩擦生火,避险品种获得支撑,黄金和日元大幅走强。美指受中美贸易问题影响而在低位震荡。继5月12日,四艘商船在阿联酋领海附近的阿曼湾、…...

    2024/4/25 18:39:16
  16. 【原油贵金属早评】贸易冲突导致需求低迷,油价弱势

    原标题:【原油贵金属早评】贸易冲突导致需求低迷,油价弱势近日虽然伊朗局势升温,中东地区几起油船被袭击事件影响,但油价并未走高,而是出于调整结构中。由于市场预期局势失控的可能性较低,而中美贸易问题导致的全球经济衰退风险更大,需求会持续低迷,因此油价调整压力较…...

    2024/4/26 19:03:37
  17. 氧生福地 玩美北湖(上)——为时光守候两千年

    原标题:氧生福地 玩美北湖(上)——为时光守候两千年一次说走就走的旅行,只有一张高铁票的距离~ 所以,湖南郴州,我来了~ 从广州南站出发,一个半小时就到达郴州西站了。在动车上,同时改票的南风兄和我居然被分到了一个车厢,所以一路非常愉快地聊了过来。 挺好,最起…...

    2024/4/26 22:01:59
  18. 氧生福地 玩美北湖(中)——永春梯田里的美与鲜

    原标题:氧生福地 玩美北湖(中)——永春梯田里的美与鲜一觉醒来,因为大家太爱“美”照,在柳毅山庄去寻找龙女而错过了早餐时间。近十点,向导坏坏还是带着饥肠辘辘的我们去吃郴州最富有盛名的“鱼头粉”。说这是“十二分推荐”,到郴州必吃的美食之一。 哇塞!那个味美香甜…...

    2024/4/25 18:39:14
  19. 氧生福地 玩美北湖(下)——奔跑吧骚年!

    原标题:氧生福地 玩美北湖(下)——奔跑吧骚年!让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 啊……啊……啊 两…...

    2024/4/26 23:04:58
  20. 扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!

    原标题:扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!扒开伪装医用面膜,翻六倍价格宰客!当行业里的某一品项火爆了,就会有很多商家蹭热度,装逼忽悠,最近火爆朋友圈的医用面膜,被沾上了污点,到底怎么回事呢? “比普通面膜安全、效果好!痘痘、痘印、敏感肌都能用…...

    2024/4/25 2:10:52
  21. 「发现」铁皮石斛仙草之神奇功效用于医用面膜

    原标题:「发现」铁皮石斛仙草之神奇功效用于医用面膜丽彦妆铁皮石斛医用面膜|石斛多糖无菌修护补水贴19大优势: 1、铁皮石斛:自唐宋以来,一直被列为皇室贡品,铁皮石斛生于海拔1600米的悬崖峭壁之上,繁殖力差,产量极低,所以古代仅供皇室、贵族享用 2、铁皮石斛自古民间…...

    2024/4/25 18:39:00
  22. 丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者

    原标题:丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者【公司简介】 广州华彬企业隶属香港华彬集团有限公司,专注美业21年,其旗下品牌: 「圣茵美」私密荷尔蒙抗衰,产后修复 「圣仪轩」私密荷尔蒙抗衰,产后修复 「花茵莳」私密荷尔蒙抗衰,产后修复 「丽彦妆」专注医学护…...

    2024/4/26 19:46:12
  23. 广州械字号面膜生产厂家OEM/ODM4项须知!

    原标题:广州械字号面膜生产厂家OEM/ODM4项须知!广州械字号面膜生产厂家OEM/ODM流程及注意事项解读: 械字号医用面膜,其实在我国并没有严格的定义,通常我们说的医美面膜指的应该是一种「医用敷料」,也就是说,医用面膜其实算作「医疗器械」的一种,又称「医用冷敷贴」。 …...

    2024/4/27 11:43:08
  24. 械字号医用眼膜缓解用眼过度到底有无作用?

    原标题:械字号医用眼膜缓解用眼过度到底有无作用?医用眼膜/械字号眼膜/医用冷敷眼贴 凝胶层为亲水高分子材料,含70%以上的水分。体表皮肤温度传导到本产品的凝胶层,热量被凝胶内水分子吸收,通过水分的蒸发带走大量的热量,可迅速地降低体表皮肤局部温度,减轻局部皮肤的灼…...

    2024/4/27 8:32:30
  25. 配置失败还原请勿关闭计算机,电脑开机屏幕上面显示,配置失败还原更改 请勿关闭计算机 开不了机 这个问题怎么办...

    解析如下:1、长按电脑电源键直至关机,然后再按一次电源健重启电脑,按F8健进入安全模式2、安全模式下进入Windows系统桌面后,按住“winR”打开运行窗口,输入“services.msc”打开服务设置3、在服务界面,选中…...

    2022/11/19 21:17:18
  26. 错误使用 reshape要执行 RESHAPE,请勿更改元素数目。

    %读入6幅图像(每一幅图像的大小是564*564) f1 imread(WashingtonDC_Band1_564.tif); subplot(3,2,1),imshow(f1); f2 imread(WashingtonDC_Band2_564.tif); subplot(3,2,2),imshow(f2); f3 imread(WashingtonDC_Band3_564.tif); subplot(3,2,3),imsho…...

    2022/11/19 21:17:16
  27. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机...

    win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”问题的解决方法在win7系统关机时如果有升级系统的或者其他需要会直接进入一个 等待界面,在等待界面中我们需要等待操作结束才能关机,虽然这比较麻烦,但是对系统进行配置和升级…...

    2022/11/19 21:17:15
  28. 台式电脑显示配置100%请勿关闭计算机,“准备配置windows 请勿关闭计算机”的解决方法...

    有不少用户在重装Win7系统或更新系统后会遇到“准备配置windows,请勿关闭计算机”的提示,要过很久才能进入系统,有的用户甚至几个小时也无法进入,下面就教大家这个问题的解决方法。第一种方法:我们首先在左下角的“开始…...

    2022/11/19 21:17:14
  29. win7 正在配置 请勿关闭计算机,怎么办Win7开机显示正在配置Windows Update请勿关机...

    置信有很多用户都跟小编一样遇到过这样的问题,电脑时发现开机屏幕显现“正在配置Windows Update,请勿关机”(如下图所示),而且还需求等大约5分钟才干进入系统。这是怎样回事呢?一切都是正常操作的,为什么开时机呈现“正…...

    2022/11/19 21:17:13
  30. 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...

    Win7系统开机启动时总是出现“配置Windows请勿关机”的提示,没过几秒后电脑自动重启,每次开机都这样无法进入系统,此时碰到这种现象的用户就可以使用以下5种方法解决问题。方法一:开机按下F8,在出现的Windows高级启动选…...

    2022/11/19 21:17:12
  31. 准备windows请勿关闭计算机要多久,windows10系统提示正在准备windows请勿关闭计算机怎么办...

    有不少windows10系统用户反映说碰到这样一个情况,就是电脑提示正在准备windows请勿关闭计算机,碰到这样的问题该怎么解决呢,现在小编就给大家分享一下windows10系统提示正在准备windows请勿关闭计算机的具体第一种方法:1、2、依次…...

    2022/11/19 21:17:11
  32. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”的解决方法...

    今天和大家分享一下win7系统重装了Win7旗舰版系统后,每次关机的时候桌面上都会显示一个“配置Windows Update的界面,提示请勿关闭计算机”,每次停留好几分钟才能正常关机,导致什么情况引起的呢?出现配置Windows Update…...

    2022/11/19 21:17:10
  33. 电脑桌面一直是清理请关闭计算机,windows7一直卡在清理 请勿关闭计算机-win7清理请勿关机,win7配置更新35%不动...

    只能是等着,别无他法。说是卡着如果你看硬盘灯应该在读写。如果从 Win 10 无法正常回滚,只能是考虑备份数据后重装系统了。解决来方案一:管理员运行cmd:net stop WuAuServcd %windir%ren SoftwareDistribution SDoldnet start WuA…...

    2022/11/19 21:17:09
  34. 计算机配置更新不起,电脑提示“配置Windows Update请勿关闭计算机”怎么办?

    原标题:电脑提示“配置Windows Update请勿关闭计算机”怎么办?win7系统中在开机与关闭的时候总是显示“配置windows update请勿关闭计算机”相信有不少朋友都曾遇到过一次两次还能忍但经常遇到就叫人感到心烦了遇到这种问题怎么办呢?一般的方…...

    2022/11/19 21:17:08
  35. 计算机正在配置无法关机,关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机...

    关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!关机提示 windows7 正在配…...

    2022/11/19 21:17:05
  36. 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...

    钉钉请勿通过开发者调试模式是真的吗好不好用 更新时间:2020-04-20 22:24:19 浏览次数:729次 区域: 南阳 > 卧龙 列举网提醒您:为保障您的权益,请不要提前支付任何费用! 虚拟位置外设器!!轨迹模拟&虚拟位置外设神器 专业用于:钉钉,外勤365,红圈通,企业微信和…...

    2022/11/19 21:17:05
  37. 配置失败还原请勿关闭计算机怎么办,win7系统出现“配置windows update失败 还原更改 请勿关闭计算机”,长时间没反应,无法进入系统的解决方案...

    前几天班里有位学生电脑(windows 7系统)出问题了,具体表现是开机时一直停留在“配置windows update失败 还原更改 请勿关闭计算机”这个界面,长时间没反应,无法进入系统。这个问题原来帮其他同学也解决过,网上搜了不少资料&#x…...

    2022/11/19 21:17:04
  38. 一个电脑无法关闭计算机你应该怎么办,电脑显示“清理请勿关闭计算机”怎么办?...

    本文为你提供了3个有效解决电脑显示“清理请勿关闭计算机”问题的方法,并在最后教给你1种保护系统安全的好方法,一起来看看!电脑出现“清理请勿关闭计算机”在Windows 7(SP1)和Windows Server 2008 R2 SP1中,添加了1个新功能在“磁…...

    2022/11/19 21:17:03
  39. 请勿关闭计算机还原更改要多久,电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机怎么办...

    许多用户在长期不使用电脑的时候,开启电脑发现电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机。。.这要怎么办呢?下面小编就带着大家一起看看吧!如果能够正常进入系统,建议您暂时移…...

    2022/11/19 21:17:02
  40. 还原更改请勿关闭计算机 要多久,配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以...

    配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容,让我们赶快一起来看一下吧!配置windows update失败 还原更改 请勿关闭计算机&#x…...

    2022/11/19 21:17:01
  41. 电脑配置中请勿关闭计算机怎么办,准备配置windows请勿关闭计算机一直显示怎么办【图解】...

    不知道大家有没有遇到过这样的一个问题,就是我们的win7系统在关机的时候,总是喜欢显示“准备配置windows,请勿关机”这样的一个页面,没有什么大碍,但是如果一直等着的话就要两个小时甚至更久都关不了机,非常…...

    2022/11/19 21:17:00
  42. 正在准备配置请勿关闭计算机,正在准备配置windows请勿关闭计算机时间长了解决教程...

    当电脑出现正在准备配置windows请勿关闭计算机时,一般是您正对windows进行升级,但是这个要是长时间没有反应,我们不能再傻等下去了。可能是电脑出了别的问题了,来看看教程的说法。正在准备配置windows请勿关闭计算机时间长了方法一…...

    2022/11/19 21:16:59
  43. 配置失败还原请勿关闭计算机,配置Windows Update失败,还原更改请勿关闭计算机...

    我们使用电脑的过程中有时会遇到这种情况,当我们打开电脑之后,发现一直停留在一个界面:“配置Windows Update失败,还原更改请勿关闭计算机”,等了许久还是无法进入系统。如果我们遇到此类问题应该如何解决呢&#xff0…...

    2022/11/19 21:16:58
  44. 如何在iPhone上关闭“请勿打扰”

    Apple’s “Do Not Disturb While Driving” is a potentially lifesaving iPhone feature, but it doesn’t always turn on automatically at the appropriate time. For example, you might be a passenger in a moving car, but your iPhone may think you’re the one dri…...

    2022/11/19 21:16:57