• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

adding the name and the date to my spot channels

Community Beginner ,
Jul 12, 2022 Jul 12, 2022

Copy link to clipboard

Copied

HI

I am working in color separation i want to make a script to add the name of the spot channel and the date to every spot channel  beside the registration mark i tray to do it in action but i can not add the name of each spot channel and the date beside every design have it is own colors some designs 3 colors some 8 colors and i want to add the register mark to each spot channel if this design 3 colors or more thank you so much for helping

regards 

Sarah

TOPICS
Windows

Views

238

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Jul 13, 2022 Jul 13, 2022

Copy link to clipboard

Copied

What is giving you problems with a Scripting approach? 

 

Please post meaningful screenshots (including the Channels Panel obviously) that illustrate what you start with and what you want to get. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 13, 2022 Jul 13, 2022

Copy link to clipboard

Copied

// add current date to spot channels’ names;
// 2022, use it at your own risk;
if (app.documents.length > 0) {
    var myDocument = app.activeDocument;
    var theChannels = myDocument.channels;
    var theTotal = Number(myDocument.width) * Number(myDocument.height);
    for (var m = theChannels.length - 1; m >= 0; m--) {
        var thisChannel = theChannels[m];
        if (thisChannel.kind == "ChannelType.SPOTCOLOR") {
            var theName = thisChannel.name;
            thisChannel.visible = true;
            thisChannel.name = dateString()+"_"+theName;
        }
    };
};
////// function to get the date //////
function dateString () {
	var now = new Date();
	var day = now.getDate();
	day = bufferNumberWithZeros(day, 2);
	var month = now.getMonth();
	month++;
	month = bufferNumberWithZeros(month, 2);
	var year = now.getFullYear();
	var hour = now.getHours();
	hour = bufferNumberWithZeros(hour, 2);
	var minutes = now.getMinutes();
	minutes = bufferNumberWithZeros(minutes, 2);
	var seconds = now.getSeconds();
	seconds = bufferNumberWithZeros(seconds, 2);
	var myDateText = year+"-"+month+"-"+day+"_"+hour+"-"+minutes+"-"+seconds;
	return myDateText
	};
////// buffer number with zeros //////
function bufferNumberWithZeros (number, places) {
	var theNumberString = String(number);
	for (var o = 0; o < (places - String(number).length); o++) {
		theNumberString = String("0" + theNumberString)
		};
	return theNumberString
	};

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 13, 2022 Jul 13, 2022

Copy link to clipboard

Copied

hi

thanks for your helping but i want to add the date in the channel that i am going to print i send you a snapshot to see where i want toaddthe date for the channels name i found here a cod to add it to the channel  i want to add the registration mark to the all the channel thank very much for your help 

sarah252162545j8t_1-1657790529839.png

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 13, 2022 Jul 13, 2022

Copy link to clipboard

Copied

Please post meaningful screenshots (including the Channels Panel obviously) that illustrate what you start with and what you want to get

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 13, 2022 Jul 13, 2022

Copy link to clipboard

Copied

hi

i am sending the screenshots hope you understand me

sarah252162545j8t_0-1657791761223.png

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 13, 2022 Jul 13, 2022

Copy link to clipboard

Copied

Your screen shot says you want registration marks and text (the date) to print on all channels. This is what the colour [Registration] is for. Is there any difficulty using this special colour?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 13, 2022 Jul 13, 2022

Copy link to clipboard

Copied

yes i want to make a big registeration mark and thae date to save it with the channel and print it

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 13, 2022 Jul 13, 2022

Copy link to clipboard

Copied

Where is the original canvas edge before the canvas is extended and crops are added? Or is the canvas already wide and tall enough to accommodate the marks with no need to resize the canvas?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 13, 2022 Jul 13, 2022

Copy link to clipboard

Copied

i all reday extended  the design 2 cm in eatch direaction so i can add my crops i made my registeration mark 1.5 cm by 1.5 cm

thanks for your help

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 13, 2022 Jul 13, 2022

Copy link to clipboard

Copied

What is the difficult with using [Registration] colour? I don't see you answering this. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 13, 2022 Jul 13, 2022

Copy link to clipboard

Copied

I'm sorry, I got it into my head that the question was about InDesign. Ignore me!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 13, 2022 Jul 13, 2022

Copy link to clipboard

Copied

This would create black registration marks in the spot channels; as you did, in my opinion, not provide a very meaningful description I just added three more or less at random. 

So feel free to edit that by inserting additional points in the array in the line 

var thePath = createPathWithMultiples(theArray, "aaa", [[50, 50], [500,200], [theWidth-100, theHeight-100]]);

and, if necessary for size considerations, change theArray itself. 

// 2022, use it at your own risk;
if (app.documents.length > 0) {
var originalRulerUnits = app.preferences.rulerUnits;
app.preferences.rulerUnits = Units.POINTS;
var myDocument = app.activeDocument;
var theWidth = myDocument.width; 
var theHeight = myDocument.height;
var theChannels = myDocument.channels;
// crate path;
var theArray = 
[[[[-0,-18],[10,-18],[-10,-18],true],
[[18,0],[18,10],[18,-10],true],
[[-0,18],[-10,18],[10,18],true],
[[-18,0],[-18,-10],[-18,10],true],
true,1908],
[[[-0,-17],[9.5,-17],[-9.5,-17],true],
[[17,0],[17,9.5],[17,-9.5],true],
[[-0,17],[-9.5,17],[9.5,17],true],
[[-17,0],[-17.,-9.5],[-17,9.5],true],
true,1908],
[[[26,-0.5],[26,-0.5],[26,-0.5],false],
[[26,0.5],[26,0.5],[26,0.5],false],
[[-26,0.5],[-26,0.5],[-26,0.5],false],
[[-26,-0.5],[-26,-0.5],[-26,-0.5],false],
true,1097098272],
[[[-0.5,-26],[-0.5,-26],[-0.5,-26],false],
[[0.5,-26],[0.5,-26],[0.5,-26],false],
[[0.5,26],[0.5,26],[0.5,26],false],
[[-0.5,26],[-0.5,26],[-0.5,26],false],
true,1097098272], 
[[[-0,-9],[5,-9],[-5,-9],true],
[[9,0],[9,5],[9,-5],true],
[[-0,9],[-5,9],[5,9],true],
[[-9,0],[-9,-5],[-9,5],true],
true,1908]];
var thePath = createPathWithMultiples(theArray, "aaa", [[50, 50], [500,200], [theWidth-100, theHeight-100]]);
thePath = myDocument.pathItems[myDocument.pathItems.length-1];
var theBlack = new SolidColor;
theBlack.hsb.hue = 0;
theBlack.hsb.saturation = 0;
theBlack.hsb.brightness = 0;
// fill in channels;
for (var m = theChannels.length - 1; m >= 0; m--) {
    var thisChannel = theChannels[m];
    if (thisChannel.kind == "ChannelType.SPOTCOLOR") {
        myDocument.activeChannels = [thisChannel];
        thisChannel.visible = true;
        thePath.fillPath(theBlack, ColorBlendMode.MULTIPLY, 100, false, 0, true, true);
    };
app.preferences.rulerUnits = originalRulerUnits;
};
thePath.remove();
};
////////////////////////////////////
////////////////////////////////////
////////////////////////////////////
////// create a path from collectPathInfoFromDesc2012-array //////
function createPathWithMultiples(theArray, thePathsName, theOffsets) {
    var originalRulerUnits = app.preferences.rulerUnits;
    app.preferences.rulerUnits = Units.PIXELS;
    // thanks to xbytor;
    cTID = function(s) { return app.charIDToTypeID(s); };
    sTID = function(s) { return app.stringIDToTypeID(s); };
    
        var desc1 = new ActionDescriptor();
        var ref1 = new ActionReference();
        ref1.putProperty(cTID('Path'), cTID('WrPt'));
        desc1.putReference(sTID('null'), ref1);
        var list1 = new ActionList();


    for (var x = 0; x < theOffsets.length; x++) {
        var thisOffset = theOffsets[x];
        
        for (var m = 0; m < theArray.length; m++) {
            var thisSubPath = theArray[m];
            
            var desc2 = new ActionDescriptor();
            desc2.putEnumerated(sTID('shapeOperation'), sTID('shapeOperation'), thisSubPath[thisSubPath.length - 1]);
            var list2 = new ActionList();
            var desc3 = new ActionDescriptor();
            desc3.putBoolean(cTID('Clsp'), thisSubPath[thisSubPath.length - 2]);
            var list3 = new ActionList();
            
        for (var n = 0; n < thisSubPath.length - 2; n++) {
            var thisPoint = thisSubPath[n];
            
            var desc4 = new ActionDescriptor();
            var desc5 = new ActionDescriptor();
            desc5.putUnitDouble(cTID('Hrzn'), cTID('#Rlt'), thisPoint[0][0]+thisOffset[0]);
            desc5.putUnitDouble(cTID('Vrtc'), cTID('#Rlt'), thisPoint[0][1]+thisOffset[1]);
            desc4.putObject(cTID('Anch'), cTID('Pnt '), desc5);
            var desc6 = new ActionDescriptor();
            desc6.putUnitDouble(cTID('Hrzn'), cTID('#Rlt'), thisPoint[1][0]+thisOffset[0]);
            desc6.putUnitDouble(cTID('Vrtc'), cTID('#Rlt'), thisPoint[1][1]+thisOffset[1]);
            desc4.putObject(cTID('Fwd '), cTID('Pnt '), desc6);
            var desc7 = new ActionDescriptor();
            desc7.putUnitDouble(cTID('Hrzn'), cTID('#Rlt'), thisPoint[2][0]+thisOffset[0]);
            desc7.putUnitDouble(cTID('Vrtc'), cTID('#Rlt'), thisPoint[2][1]+thisOffset[1]);
            desc4.putObject(cTID('Bwd '), cTID('Pnt '), desc7);
            desc4.putBoolean(cTID('Smoo'), thisPoint[3]);
            list3.putObject(cTID('Pthp'), desc4);
            
            };
            
            desc3.putList(cTID('Pts '), list3);
            list2.putObject(cTID('Sbpl'), desc3);
            desc2.putList(cTID('SbpL'), list2);
            list1.putObject(cTID('PaCm'), desc2);
            };


    };    
            
            desc1.putList(cTID('T   '), list1);
            executeAction(cTID('setd'), desc1, DialogModes.NO);


      //  };

    
    // name work path;
    var desc30 = new ActionDescriptor();
    var ref6 = new ActionReference();
    var idPath = charIDToTypeID( "Path" );
    ref6.putClass( idPath );
    desc30.putReference( charIDToTypeID( "null" ), ref6 );
    var ref7 = new ActionReference();
    ref7.putProperty( idPath, charIDToTypeID( "WrPt" ) );
    desc30.putReference( charIDToTypeID( "From" ), ref7 );
    desc30.putString( charIDToTypeID( "Nm  " ), thePathsName );
    executeAction( charIDToTypeID( "Mk  " ), desc30, DialogModes.NO );
    /// get index;
    var ref = new ActionReference();
    ref.putProperty(stringIDToTypeID("property"), stringIDToTypeID("itemIndex"));
    ref.putEnumerated( charIDToTypeID("Path"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
    var pathDesc = executeActionGet(ref);
    var myPathItem = activeDocument.pathItems[pathDesc.getInteger(stringIDToTypeID("itemIndex")) - 1];
    app.preferences.rulerUnits = originalRulerUnits;
    return myPathItem
    };

Screenshot 2022-07-13 at 15.41.01.pngScreenshot 2022-07-13 at 15.41.16.png

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 13, 2022 Jul 13, 2022

Copy link to clipboard

Copied

thanks sir i will tray it thanks again for your time

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 13, 2022 Jul 13, 2022

Copy link to clipboard

Copied


// REGISTRATION  MARK


//=======================================================
var id2204 = charIDToTypeID( "CnvS" );
var desc379 = new ActionDescriptor();
var id2205 = charIDToTypeID( "Rltv" );
desc379.putBoolean( id2205, true );
var id2206 = charIDToTypeID( "Wdth" );
var id2207 = charIDToTypeID( "#Rlt" );
desc379.putUnitDouble( id2206, id2207, 85.039370 );
var id2208 = charIDToTypeID( "Hght" );
var id2209 = charIDToTypeID( "#Rlt" );
desc379.putUnitDouble( id2208, id2209, 85.039370 );
var id2210 = charIDToTypeID( "Hrzn" );
var id2211 = charIDToTypeID( "HrzL" );
var id2212 = charIDToTypeID( "Cntr" );
desc379.putEnumerated( id2210, id2211, id2212 );
var id2213 = charIDToTypeID( "Vrtc" );
var id2214 = charIDToTypeID( "VrtL" );
var id2215 = charIDToTypeID( "Cntr" );
desc379.putEnumerated( id2213, id2214, id2215 );
var id2216 = stringIDToTypeID( "canvasExtensionColorType" );
var id2217 = stringIDToTypeID( "canvasExtensionColorType" );
var id2218 = charIDToTypeID( "BckC" );
desc379.putEnumerated( id2216, id2217, id2218 );
executeAction( id2204, desc379, DialogModes.NO );
// =======================================================
var id1852 = charIDToTypeID( "Mk " );
var desc313 = new ActionDescriptor();
var id1853 = charIDToTypeID( "Nw " );
var desc314 = new ActionDescriptor();
var id1854 = charIDToTypeID( "ClrI" );
var id1855 = charIDToTypeID( "MskI" );
var id1856 = charIDToTypeID( "MskA" );
desc314.putEnumerated( id1854, id1855, id1856 );
var id1857 = charIDToTypeID( "Clr " );
var desc315 = new ActionDescriptor();
var id1858 = charIDToTypeID( "H " );
var id1859 = charIDToTypeID( "#Ang" );
desc315.putUnitDouble( id1858, id1859, 0.000000 );
var id1860 = charIDToTypeID( "Strt" );
desc315.putDouble( id1860, 0.000000 );
var id1861 = charIDToTypeID( "Brgh" );
desc315.putDouble( id1861, 0.000000 );
var id1862 = charIDToTypeID( "HSBC" );
desc314.putObject( id1857, id1862, desc315 );
var id1863 = charIDToTypeID( "Opct" );
desc314.putInteger( id1863, 100 );
var id1864 = charIDToTypeID( "Chnl" );
desc313.putObject( id1853, id1864, desc314 );
executeAction( id1852, desc313, DialogModes.NO );

// =======================================================
var id1865 = charIDToTypeID( "move" );
var desc316 = new ActionDescriptor();
var id1866 = charIDToTypeID( "null" );
var ref315 = new ActionReference();
var id1867 = charIDToTypeID( "Chnl" );
var id1868 = charIDToTypeID( "Ordn" );
var id1869 = charIDToTypeID( "Trgt" );
ref315.putEnumerated( id1867, id1868, id1869 );
desc316.putReference( id1866, ref315 );
var id1870 = charIDToTypeID( "T " );
var ref316 = new ActionReference();
var id1871 = charIDToTypeID( "Chnl" );
ref316.putIndex( id1871, 1 );
desc316.putReference( id1870, ref316 );
executeAction( id1865, desc316, DialogModes.NO );

// =======================================================
var id1872 = charIDToTypeID( "CnvM" );
var desc317 = new ActionDescriptor();
var id1873 = charIDToTypeID( "T " );
var id1874 = charIDToTypeID( "Grys" );
desc317.putClass( id1873, id1874 );
executeAction( id1872, desc317, DialogModes.NO );

// =======================================================
var id1875 = charIDToTypeID( "Mk " );
var desc318 = new ActionDescriptor();
var id1876 = charIDToTypeID( "null" );
var ref317 = new ActionReference();
var id1877 = charIDToTypeID( "Lyr " );
ref317.putClass( id1877 );
desc318.putReference( id1876, ref317 );
executeAction( id1875, desc318, DialogModes.NO );

// =======================================================
var id1878 = charIDToTypeID( "Opn " );
var desc319 = new ActionDescriptor();
var id1879 = charIDToTypeID( "null" );
desc319.putPath( id1879, new File( "C:\\Documents\\regester mark.psd" ) );
executeAction( id1878, desc319, DialogModes.NO );

// =======================================================
var id1880 = charIDToTypeID( "setd" );
var desc320 = new ActionDescriptor();
var id1881 = charIDToTypeID( "null" );
var ref318 = new ActionReference();
var id1882 = charIDToTypeID( "Chnl" );
var id1883 = charIDToTypeID( "fsel" );
ref318.putProperty( id1882, id1883 );
desc320.putReference( id1881, ref318 );
var id1884 = charIDToTypeID( "T " );
var id1885 = charIDToTypeID( "Ordn" );
var id1886 = charIDToTypeID( "Al " );
desc320.putEnumerated( id1884, id1885, id1886 );
executeAction( id1880, desc320, DialogModes.NO );

// =======================================================
var id1887 = charIDToTypeID( "copy" );
executeAction( id1887, undefined, DialogModes.NO );

// =======================================================
var id1888 = charIDToTypeID( "Cls " );
executeAction( id1888, undefined, DialogModes.NO );

// =======================================================
var id1889 = charIDToTypeID( "slct" );
var desc321 = new ActionDescriptor();
var id1890 = charIDToTypeID( "null" );
var ref319 = new ActionReference();
var id1891 = charIDToTypeID( "Lyr " );
ref319.putName( id1891, "Background" );
desc321.putReference( id1890, ref319 );
var id1892 = charIDToTypeID( "MkVs" );
desc321.putBoolean( id1892, false );
executeAction( id1889, desc321, DialogModes.NO );

// =======================================================
var id1893 = charIDToTypeID( "slct" );
var desc322 = new ActionDescriptor();
var id1894 = charIDToTypeID( "null" );
var ref320 = new ActionReference();
var id1895 = charIDToTypeID( "Lyr " );
ref320.putName( id1895, "Layer 1" );
desc322.putReference( id1894, ref320 );
var id1896 = charIDToTypeID( "MkVs" );
desc322.putBoolean( id1896, false );
executeAction( id1893, desc322, DialogModes.NO );

// =======================================================
var id1897 = charIDToTypeID( "past" );
var desc323 = new ActionDescriptor();
var id1898 = charIDToTypeID( "AntA" );
var id1899 = charIDToTypeID( "Annt" );
var id1900 = charIDToTypeID( "Anno" );
desc323.putEnumerated( id1898, id1899, id1900 );
executeAction( id1897, desc323, DialogModes.NO );

// =======================================================
var id1901 = charIDToTypeID( "slct" );
var desc324 = new ActionDescriptor();
var id1902 = charIDToTypeID( "null" );
var ref321 = new ActionReference();
var id1903 = charIDToTypeID( "Lyr " );
ref321.putName( id1903, "Background" );
desc324.putReference( id1902, ref321 );
var id1904 = stringIDToTypeID( "selectionModifier" );
var id1905 = stringIDToTypeID( "selectionModifierType" );
var id1906 = stringIDToTypeID( "addToSelectionContinuous" );
desc324.putEnumerated( id1904, id1905, id1906 );
var id1907 = charIDToTypeID( "MkVs" );
desc324.putBoolean( id1907, false );
executeAction( id1901, desc324, DialogModes.NO );

// =======================================================
var id1908 = charIDToTypeID( "Algn" );
var desc325 = new ActionDescriptor();
var id1909 = charIDToTypeID( "null" );
var ref322 = new ActionReference();
var id1910 = charIDToTypeID( "Lyr " );
var id1911 = charIDToTypeID( "Ordn" );
var id1912 = charIDToTypeID( "Trgt" );
ref322.putEnumerated( id1910, id1911, id1912 );
desc325.putReference( id1909, ref322 );
var id1913 = charIDToTypeID( "Usng" );
var id1914 = charIDToTypeID( "ADSt" );
var id1915 = charIDToTypeID( "AdTp" );
desc325.putEnumerated( id1913, id1914, id1915 );
executeAction( id1908, desc325, DialogModes.NO );

// =======================================================
var id1916 = charIDToTypeID( "Algn" );
var desc326 = new ActionDescriptor();
var id1917 = charIDToTypeID( "null" );
var ref323 = new ActionReference();
var id1918 = charIDToTypeID( "Lyr " );
var id1919 = charIDToTypeID( "Ordn" );
var id1920 = charIDToTypeID( "Trgt" );
ref323.putEnumerated( id1918, id1919, id1920 );
desc326.putReference( id1917, ref323 );
var id1921 = charIDToTypeID( "Usng" );
var id1922 = charIDToTypeID( "ADSt" );
var id1923 = charIDToTypeID( "AdLf" );
desc326.putEnumerated( id1921, id1922, id1923 );
executeAction( id1916, desc326, DialogModes.NO );

// =======================================================
var id1924 = charIDToTypeID( "Mk " );
var desc327 = new ActionDescriptor();
var id1925 = charIDToTypeID( "null" );
var ref324 = new ActionReference();
var id1926 = charIDToTypeID( "Lyr " );
ref324.putClass( id1926 );
desc327.putReference( id1925, ref324 );
executeAction( id1924, desc327, DialogModes.NO );

// =======================================================
var id1927 = charIDToTypeID( "past" );
var desc328 = new ActionDescriptor();
var id1928 = charIDToTypeID( "AntA" );
var id1929 = charIDToTypeID( "Annt" );
var id1930 = charIDToTypeID( "Anno" );
desc328.putEnumerated( id1928, id1929, id1930 );
executeAction( id1927, desc328, DialogModes.NO );

// =======================================================
var id1931 = charIDToTypeID( "slct" );
var desc329 = new ActionDescriptor();
var id1932 = charIDToTypeID( "null" );
var ref325 = new ActionReference();
var id1933 = charIDToTypeID( "Lyr " );
ref325.putName( id1933, "Background" );
desc329.putReference( id1932, ref325 );
var id1934 = stringIDToTypeID( "selectionModifier" );
var id1935 = stringIDToTypeID( "selectionModifierType" );
var id1936 = stringIDToTypeID( "addToSelection" );
desc329.putEnumerated( id1934, id1935, id1936 );
var id1937 = charIDToTypeID( "MkVs" );
desc329.putBoolean( id1937, false );
executeAction( id1931, desc329, DialogModes.NO );

// =======================================================
var id1938 = charIDToTypeID( "Algn" );
var desc330 = new ActionDescriptor();
var id1939 = charIDToTypeID( "null" );
var ref326 = new ActionReference();
var id1940 = charIDToTypeID( "Lyr " );
var id1941 = charIDToTypeID( "Ordn" );
var id1942 = charIDToTypeID( "Trgt" );
ref326.putEnumerated( id1940, id1941, id1942 );
desc330.putReference( id1939, ref326 );
var id1943 = charIDToTypeID( "Usng" );
var id1944 = charIDToTypeID( "ADSt" );
var id1945 = charIDToTypeID( "AdRg" );
desc330.putEnumerated( id1943, id1944, id1945 );
executeAction( id1938, desc330, DialogModes.NO );

// =======================================================
var id1946 = charIDToTypeID( "Algn" );
var desc331 = new ActionDescriptor();
var id1947 = charIDToTypeID( "null" );
var ref327 = new ActionReference();
var id1948 = charIDToTypeID( "Lyr " );
var id1949 = charIDToTypeID( "Ordn" );
var id1950 = charIDToTypeID( "Trgt" );
ref327.putEnumerated( id1948, id1949, id1950 );
desc331.putReference( id1947, ref327 );
var id1951 = charIDToTypeID( "Usng" );
var id1952 = charIDToTypeID( "ADSt" );
var id1953 = charIDToTypeID( "AdTp" );
desc331.putEnumerated( id1951, id1952, id1953 );
executeAction( id1946, desc331, DialogModes.NO );

// =======================================================
var id1954 = charIDToTypeID( "slct" );
var desc332 = new ActionDescriptor();
var id1955 = charIDToTypeID( "null" );
var ref328 = new ActionReference();
var id1956 = charIDToTypeID( "Lyr " );
ref328.putName( id1956, "Layer 2" );
desc332.putReference( id1955, ref328 );
var id1957 = charIDToTypeID( "MkVs" );
desc332.putBoolean( id1957, false );
executeAction( id1954, desc332, DialogModes.NO );

// =======================================================
var id1958 = charIDToTypeID( "past" );
var desc333 = new ActionDescriptor();
var id1959 = charIDToTypeID( "AntA" );
var id1960 = charIDToTypeID( "Annt" );
var id1961 = charIDToTypeID( "Anno" );
desc333.putEnumerated( id1959, id1960, id1961 );
executeAction( id1958, desc333, DialogModes.NO );

// =======================================================
var id1962 = charIDToTypeID( "slct" );
var desc334 = new ActionDescriptor();
var id1963 = charIDToTypeID( "null" );
var ref329 = new ActionReference();
var id1964 = charIDToTypeID( "Lyr " );
ref329.putName( id1964, "Background" );
desc334.putReference( id1963, ref329 );
var id1965 = stringIDToTypeID( "selectionModifier" );
var id1966 = stringIDToTypeID( "selectionModifierType" );
var id1967 = stringIDToTypeID( "addToSelection" );
desc334.putEnumerated( id1965, id1966, id1967 );
var id1968 = charIDToTypeID( "MkVs" );
desc334.putBoolean( id1968, false );
executeAction( id1962, desc334, DialogModes.NO );

// =======================================================
var id1969 = charIDToTypeID( "Algn" );
var desc335 = new ActionDescriptor();
var id1970 = charIDToTypeID( "null" );
var ref330 = new ActionReference();
var id1971 = charIDToTypeID( "Lyr " );
var id1972 = charIDToTypeID( "Ordn" );
var id1973 = charIDToTypeID( "Trgt" );
ref330.putEnumerated( id1971, id1972, id1973 );
desc335.putReference( id1970, ref330 );
var id1974 = charIDToTypeID( "Usng" );
var id1975 = charIDToTypeID( "ADSt" );
var id1976 = charIDToTypeID( "AdLf" );
desc335.putEnumerated( id1974, id1975, id1976 );
executeAction( id1969, desc335, DialogModes.NO );

// =======================================================
var id1977 = charIDToTypeID( "Algn" );
var desc336 = new ActionDescriptor();
var id1978 = charIDToTypeID( "null" );
var ref331 = new ActionReference();
var id1979 = charIDToTypeID( "Lyr " );
var id1980 = charIDToTypeID( "Ordn" );
var id1981 = charIDToTypeID( "Trgt" );
ref331.putEnumerated( id1979, id1980, id1981 );
desc336.putReference( id1978, ref331 );
var id1982 = charIDToTypeID( "Usng" );
var id1983 = charIDToTypeID( "ADSt" );
var id1984 = charIDToTypeID( "AdBt" );
desc336.putEnumerated( id1982, id1983, id1984 );
executeAction( id1977, desc336, DialogModes.NO );

// =======================================================
var id1985 = charIDToTypeID( "Mk " );
var desc337 = new ActionDescriptor();
var id1986 = charIDToTypeID( "null" );
var ref332 = new ActionReference();
var id1987 = charIDToTypeID( "Lyr " );
ref332.putClass( id1987 );
desc337.putReference( id1986, ref332 );
executeAction( id1985, desc337, DialogModes.NO );

// =======================================================
var id1988 = charIDToTypeID( "past" );
var desc338 = new ActionDescriptor();
var id1989 = charIDToTypeID( "AntA" );
var id1990 = charIDToTypeID( "Annt" );
var id1991 = charIDToTypeID( "Anno" );
desc338.putEnumerated( id1989, id1990, id1991 );
executeAction( id1988, desc338, DialogModes.NO );

// =======================================================
var id1992 = charIDToTypeID( "slct" );
var desc339 = new ActionDescriptor();
var id1993 = charIDToTypeID( "null" );
var ref333 = new ActionReference();
var id1994 = charIDToTypeID( "Lyr " );
ref333.putName( id1994, "Background" );
desc339.putReference( id1993, ref333 );
var id1995 = stringIDToTypeID( "selectionModifier" );
var id1996 = stringIDToTypeID( "selectionModifierType" );
var id1997 = stringIDToTypeID( "addToSelection" );
desc339.putEnumerated( id1995, id1996, id1997 );
var id1998 = charIDToTypeID( "MkVs" );
desc339.putBoolean( id1998, false );
executeAction( id1992, desc339, DialogModes.NO );

// =======================================================
var id1999 = charIDToTypeID( "Algn" );
var desc340 = new ActionDescriptor();
var id2000 = charIDToTypeID( "null" );
var ref334 = new ActionReference();
var id2001 = charIDToTypeID( "Lyr " );
var id2002 = charIDToTypeID( "Ordn" );
var id2003 = charIDToTypeID( "Trgt" );
ref334.putEnumerated( id2001, id2002, id2003 );
desc340.putReference( id2000, ref334 );
var id2004 = charIDToTypeID( "Usng" );
var id2005 = charIDToTypeID( "ADSt" );
var id2006 = charIDToTypeID( "AdRg" );
desc340.putEnumerated( id2004, id2005, id2006 );
executeAction( id1999, desc340, DialogModes.NO );

// =======================================================
var id2007 = charIDToTypeID( "Algn" );
var desc341 = new ActionDescriptor();
var id2008 = charIDToTypeID( "null" );
var ref335 = new ActionReference();
var id2009 = charIDToTypeID( "Lyr " );
var id2010 = charIDToTypeID( "Ordn" );
var id2011 = charIDToTypeID( "Trgt" );
ref335.putEnumerated( id2009, id2010, id2011 );
desc341.putReference( id2008, ref335 );
var id2012 = charIDToTypeID( "Usng" );
var id2013 = charIDToTypeID( "ADSt" );
var id2014 = charIDToTypeID( "AdBt" );
desc341.putEnumerated( id2012, id2013, id2014 );
executeAction( id2007, desc341, DialogModes.NO );

// =======================================================
var id2015 = charIDToTypeID( "slct" );
var desc342 = new ActionDescriptor();
var id2016 = charIDToTypeID( "null" );
var ref336 = new ActionReference();
var id2017 = charIDToTypeID( "Lyr " );
ref336.putName( id2017, "Layer 3" );
desc342.putReference( id2016, ref336 );
var id2018 = charIDToTypeID( "MkVs" );
desc342.putBoolean( id2018, false );
executeAction( id2015, desc342, DialogModes.NO );

// =======================================================
var id2019 = charIDToTypeID( "slct" );
var desc343 = new ActionDescriptor();
var id2020 = charIDToTypeID( "null" );
var ref337 = new ActionReference();
var id2021 = charIDToTypeID( "Lyr " );
ref337.putName( id2021, "Layer 4" );
desc343.putReference( id2020, ref337 );
var id2022 = stringIDToTypeID( "selectionModifier" );
var id2023 = stringIDToTypeID( "selectionModifierType" );
var id2024 = stringIDToTypeID( "addToSelectionContinuous" );
desc343.putEnumerated( id2022, id2023, id2024 );
var id2025 = charIDToTypeID( "MkVs" );
desc343.putBoolean( id2025, false );
executeAction( id2019, desc343, DialogModes.NO );

// =======================================================
var id2026 = charIDToTypeID( "slct" );
var desc344 = new ActionDescriptor();
var id2027 = charIDToTypeID( "null" );
var ref338 = new ActionReference();
var id2028 = charIDToTypeID( "Lyr " );
ref338.putName( id2028, "Layer 2" );
desc344.putReference( id2027, ref338 );
var id2029 = stringIDToTypeID( "selectionModifier" );
var id2030 = stringIDToTypeID( "selectionModifierType" );
var id2031 = stringIDToTypeID( "addToSelectionContinuous" );
desc344.putEnumerated( id2029, id2030, id2031 );
var id2032 = charIDToTypeID( "MkVs" );
desc344.putBoolean( id2032, false );
executeAction( id2026, desc344, DialogModes.NO );

// =======================================================
var id2033 = charIDToTypeID( "slct" );
var desc345 = new ActionDescriptor();
var id2034 = charIDToTypeID( "null" );
var ref339 = new ActionReference();
var id2035 = charIDToTypeID( "Lyr " );
ref339.putName( id2035, "Layer 4" );
desc345.putReference( id2034, ref339 );
var id2036 = charIDToTypeID( "MkVs" );
desc345.putBoolean( id2036, false );
executeAction( id2033, desc345, DialogModes.NO );

// =======================================================
var id2037 = charIDToTypeID( "slct" );
var desc346 = new ActionDescriptor();
var id2038 = charIDToTypeID( "null" );
var ref340 = new ActionReference();
var id2039 = charIDToTypeID( "Lyr " );
ref340.putName( id2039, "Layer 3" );
desc346.putReference( id2038, ref340 );
var id2040 = stringIDToTypeID( "selectionModifier" );
var id2041 = stringIDToTypeID( "selectionModifierType" );
var id2042 = stringIDToTypeID( "addToSelectionContinuous" );
desc346.putEnumerated( id2040, id2041, id2042 );
var id2043 = charIDToTypeID( "MkVs" );
desc346.putBoolean( id2043, false );
executeAction( id2037, desc346, DialogModes.NO );

// =======================================================
var id2044 = charIDToTypeID( "slct" );
var desc347 = new ActionDescriptor();
var id2045 = charIDToTypeID( "null" );
var ref341 = new ActionReference();
var id2046 = charIDToTypeID( "Lyr " );
ref341.putName( id2046, "Layer 2" );
desc347.putReference( id2045, ref341 );
var id2047 = stringIDToTypeID( "selectionModifier" );
var id2048 = stringIDToTypeID( "selectionModifierType" );
var id2049 = stringIDToTypeID( "addToSelectionContinuous" );
desc347.putEnumerated( id2047, id2048, id2049 );
var id2050 = charIDToTypeID( "MkVs" );
desc347.putBoolean( id2050, false );
executeAction( id2044, desc347, DialogModes.NO );

// =======================================================
var id2051 = charIDToTypeID( "slct" );
var desc348 = new ActionDescriptor();
var id2052 = charIDToTypeID( "null" );
var ref342 = new ActionReference();
var id2053 = charIDToTypeID( "Lyr " );
ref342.putName( id2053, "Layer 1" );
desc348.putReference( id2052, ref342 );
var id2054 = stringIDToTypeID( "selectionModifier" );
var id2055 = stringIDToTypeID( "selectionModifierType" );
var id2056 = stringIDToTypeID( "addToSelectionContinuous" );
desc348.putEnumerated( id2054, id2055, id2056 );
var id2057 = charIDToTypeID( "MkVs" );
desc348.putBoolean( id2057, false );
executeAction( id2051, desc348, DialogModes.NO );

// =======================================================
// =======================================================
var id29 = charIDToTypeID( "slct" );
var desc9 = new ActionDescriptor();
var id30 = charIDToTypeID( "null" );
var ref5 = new ActionReference();
var id31 = charIDToTypeID( "Lyr " );
ref5.putName( id31, "Layer 4" );
desc9.putReference( id30, ref5 );
var id32 = charIDToTypeID( "MkVs" );
desc9.putBoolean( id32, false );
executeAction( id29, desc9, DialogModes.NO );

// =======================================================
var id33 = charIDToTypeID( "Mk " );
var desc10 = new ActionDescriptor();
var id34 = charIDToTypeID( "null" );
var ref6 = new ActionReference();
var id35 = charIDToTypeID( "Lyr " );
ref6.putClass( id35 );
desc10.putReference( id34, ref6 );
executeAction( id33, desc10, DialogModes.NO );

// =======================================================
var id36 = charIDToTypeID( "past" );
var desc11 = new ActionDescriptor();
var id37 = charIDToTypeID( "AntA" );
var id38 = charIDToTypeID( "Annt" );
var id39 = charIDToTypeID( "Anno" );
desc11.putEnumerated( id37, id38, id39 );
executeAction( id36, desc11, DialogModes.NO );

// =======================================================
var id40 = charIDToTypeID( "slct" );
var desc12 = new ActionDescriptor();
var id41 = charIDToTypeID( "null" );
var ref7 = new ActionReference();
var id42 = charIDToTypeID( "Lyr " );
ref7.putName( id42, "Background" );
desc12.putReference( id41, ref7 );
var id43 = stringIDToTypeID( "selectionModifier" );
var id44 = stringIDToTypeID( "selectionModifierType" );
var id45 = stringIDToTypeID( "addToSelection" );
desc12.putEnumerated( id43, id44, id45 );
var id46 = charIDToTypeID( "MkVs" );
desc12.putBoolean( id46, false );
executeAction( id40, desc12, DialogModes.NO );

// =======================================================
var id47 = charIDToTypeID( "Algn" );
var desc13 = new ActionDescriptor();
var id48 = charIDToTypeID( "null" );
var ref8 = new ActionReference();
var id49 = charIDToTypeID( "Lyr " );
var id50 = charIDToTypeID( "Ordn" );
var id51 = charIDToTypeID( "Trgt" );
ref8.putEnumerated( id49, id50, id51 );
desc13.putReference( id48, ref8 );
var id52 = charIDToTypeID( "Usng" );
var id53 = charIDToTypeID( "ADSt" );
var id54 = charIDToTypeID( "AdCV" );
desc13.putEnumerated( id52, id53, id54 );
executeAction( id47, desc13, DialogModes.NO );

// =======================================================
var id55 = charIDToTypeID( "Algn" );
var desc14 = new ActionDescriptor();
var id56 = charIDToTypeID( "null" );
var ref9 = new ActionReference();
var id57 = charIDToTypeID( "Lyr " );
var id58 = charIDToTypeID( "Ordn" );
var id59 = charIDToTypeID( "Trgt" );
ref9.putEnumerated( id57, id58, id59 );
desc14.putReference( id56, ref9 );
var id60 = charIDToTypeID( "Usng" );
var id61 = charIDToTypeID( "ADSt" );
var id62 = charIDToTypeID( "AdCH" );
desc14.putEnumerated( id60, id61, id62 );
executeAction( id55, desc14, DialogModes.NO );

// =======================================================
var id63 = charIDToTypeID( "Algn" );
var desc15 = new ActionDescriptor();
var id64 = charIDToTypeID( "null" );
var ref10 = new ActionReference();
var id65 = charIDToTypeID( "Lyr " );
var id66 = charIDToTypeID( "Ordn" );
var id67 = charIDToTypeID( "Trgt" );
ref10.putEnumerated( id65, id66, id67 );
desc15.putReference( id64, ref10 );
var id68 = charIDToTypeID( "Usng" );
var id69 = charIDToTypeID( "ADSt" );
var id70 = charIDToTypeID( "AdTp" );
desc15.putEnumerated( id68, id69, id70 );
executeAction( id63, desc15, DialogModes.NO );

// =======================================================
var id71 = charIDToTypeID( "slct" );
var desc16 = new ActionDescriptor();
var id72 = charIDToTypeID( "null" );
var ref11 = new ActionReference();
var id73 = charIDToTypeID( "Lyr " );
ref11.putName( id73, "Layer 5" );
desc16.putReference( id72, ref11 );
var id74 = charIDToTypeID( "MkVs" );
desc16.putBoolean( id74, false );
executeAction( id71, desc16, DialogModes.NO );

// =======================================================
var id75 = charIDToTypeID( "Mk " );
var desc17 = new ActionDescriptor();
var id76 = charIDToTypeID( "null" );
var ref12 = new ActionReference();
var id77 = charIDToTypeID( "Lyr " );
ref12.putClass( id77 );
desc17.putReference( id76, ref12 );
executeAction( id75, desc17, DialogModes.NO );

// =======================================================
var id78 = charIDToTypeID( "past" );
var desc18 = new ActionDescriptor();
var id79 = charIDToTypeID( "AntA" );
var id80 = charIDToTypeID( "Annt" );
var id81 = charIDToTypeID( "Anno" );
desc18.putEnumerated( id79, id80, id81 );
executeAction( id78, desc18, DialogModes.NO );

// =======================================================
var id82 = charIDToTypeID( "slct" );
var desc19 = new ActionDescriptor();
var id83 = charIDToTypeID( "null" );
var ref13 = new ActionReference();
var id84 = charIDToTypeID( "Lyr " );
ref13.putName( id84, "Background" );
desc19.putReference( id83, ref13 );
var id85 = stringIDToTypeID( "selectionModifier" );
var id86 = stringIDToTypeID( "selectionModifierType" );
var id87 = stringIDToTypeID( "addToSelection" );
desc19.putEnumerated( id85, id86, id87 );
var id88 = charIDToTypeID( "MkVs" );
desc19.putBoolean( id88, false );
executeAction( id82, desc19, DialogModes.NO );

// =======================================================
var id89 = charIDToTypeID( "Algn" );
var desc20 = new ActionDescriptor();
var id90 = charIDToTypeID( "null" );
var ref14 = new ActionReference();
var id91 = charIDToTypeID( "Lyr " );
var id92 = charIDToTypeID( "Ordn" );
var id93 = charIDToTypeID( "Trgt" );
ref14.putEnumerated( id91, id92, id93 );
desc20.putReference( id90, ref14 );
var id94 = charIDToTypeID( "Usng" );
var id95 = charIDToTypeID( "ADSt" );
var id96 = charIDToTypeID( "AdCV" );
desc20.putEnumerated( id94, id95, id96 );
executeAction( id89, desc20, DialogModes.NO );

// =======================================================
var id97 = charIDToTypeID( "Algn" );
var desc21 = new ActionDescriptor();
var id98 = charIDToTypeID( "null" );
var ref15 = new ActionReference();
var id99 = charIDToTypeID( "Lyr " );
var id100 = charIDToTypeID( "Ordn" );
var id101 = charIDToTypeID( "Trgt" );
ref15.putEnumerated( id99, id100, id101 );
desc21.putReference( id98, ref15 );
var id102 = charIDToTypeID( "Usng" );
var id103 = charIDToTypeID( "ADSt" );
var id104 = charIDToTypeID( "AdLf" );
desc21.putEnumerated( id102, id103, id104 );
executeAction( id97, desc21, DialogModes.NO );

// =======================================================
var id105 = charIDToTypeID( "Algn" );
var desc22 = new ActionDescriptor();
var id106 = charIDToTypeID( "null" );
var ref16 = new ActionReference();
var id107 = charIDToTypeID( "Lyr " );
var id108 = charIDToTypeID( "Ordn" );
var id109 = charIDToTypeID( "Trgt" );
ref16.putEnumerated( id107, id108, id109 );
desc22.putReference( id106, ref16 );
var id110 = charIDToTypeID( "Usng" );
var id111 = charIDToTypeID( "ADSt" );
var id112 = charIDToTypeID( "AdBt" );
desc22.putEnumerated( id110, id111, id112 );
executeAction( id105, desc22, DialogModes.NO );

// =======================================================
var id113 = charIDToTypeID( "Algn" );
var desc23 = new ActionDescriptor();
var id114 = charIDToTypeID( "null" );
var ref17 = new ActionReference();
var id115 = charIDToTypeID( "Lyr " );
var id116 = charIDToTypeID( "Ordn" );
var id117 = charIDToTypeID( "Trgt" );
ref17.putEnumerated( id115, id116, id117 );
desc23.putReference( id114, ref17 );
var id118 = charIDToTypeID( "Usng" );
var id119 = charIDToTypeID( "ADSt" );
var id120 = charIDToTypeID( "AdCH" );
desc23.putEnumerated( id118, id119, id120 );
executeAction( id113, desc23, DialogModes.NO );

// =======================================================
var id121 = charIDToTypeID( "slct" );
var desc24 = new ActionDescriptor();
var id122 = charIDToTypeID( "null" );
var ref18 = new ActionReference();
var id123 = charIDToTypeID( "Lyr " );
ref18.putName( id123, "Layer 5" );
desc24.putReference( id122, ref18 );
var id124 = charIDToTypeID( "MkVs" );
desc24.putBoolean( id124, false );
executeAction( id121, desc24, DialogModes.NO );

// =======================================================
var id125 = charIDToTypeID( "slct" );
var desc25 = new ActionDescriptor();
var id126 = charIDToTypeID( "null" );
var ref19 = new ActionReference();
var id127 = charIDToTypeID( "Lyr " );
ref19.putName( id127, "Layer 6" );
desc25.putReference( id126, ref19 );
var id128 = charIDToTypeID( "MkVs" );
desc25.putBoolean( id128, false );
executeAction( id125, desc25, DialogModes.NO );

// =======================================================
var id129 = charIDToTypeID( "slct" );
var desc26 = new ActionDescriptor();
var id130 = charIDToTypeID( "null" );
var ref20 = new ActionReference();
var id131 = charIDToTypeID( "Lyr " );
ref20.putName( id131, "Layer 5" );
desc26.putReference( id130, ref20 );
var id132 = stringIDToTypeID( "selectionModifier" );
var id133 = stringIDToTypeID( "selectionModifierType" );
var id134 = stringIDToTypeID( "addToSelectionContinuous" );
desc26.putEnumerated( id132, id133, id134 );
var id135 = charIDToTypeID( "MkVs" );
desc26.putBoolean( id135, false );
executeAction( id129, desc26, DialogModes.NO );

// =======================================================
var id136 = charIDToTypeID( "slct" );
var desc27 = new ActionDescriptor();
var id137 = charIDToTypeID( "null" );
var ref21 = new ActionReference();
var id138 = charIDToTypeID( "Lyr " );
ref21.putName( id138, "Layer 4" );
desc27.putReference( id137, ref21 );
var id139 = stringIDToTypeID( "selectionModifier" );
var id140 = stringIDToTypeID( "selectionModifierType" );
var id141 = stringIDToTypeID( "addToSelectionContinuous" );
desc27.putEnumerated( id139, id140, id141 );
var id142 = charIDToTypeID( "MkVs" );
desc27.putBoolean( id142, false );
executeAction( id136, desc27, DialogModes.NO );

// =======================================================
var id143 = charIDToTypeID( "slct" );
var desc28 = new ActionDescriptor();
var id144 = charIDToTypeID( "null" );
var ref22 = new ActionReference();
var id145 = charIDToTypeID( "Lyr " );
ref22.putName( id145, "Layer 3" );
desc28.putReference( id144, ref22 );
var id146 = stringIDToTypeID( "selectionModifier" );
var id147 = stringIDToTypeID( "selectionModifierType" );
var id148 = stringIDToTypeID( "addToSelectionContinuous" );
desc28.putEnumerated( id146, id147, id148 );
var id149 = charIDToTypeID( "MkVs" );
desc28.putBoolean( id149, false );
executeAction( id143, desc28, DialogModes.NO );

// =======================================================
var id150 = charIDToTypeID( "slct" );
var desc29 = new ActionDescriptor();
var id151 = charIDToTypeID( "null" );
var ref23 = new ActionReference();
var id152 = charIDToTypeID( "Lyr " );
ref23.putName( id152, "Layer 2" );
desc29.putReference( id151, ref23 );
var id153 = stringIDToTypeID( "selectionModifier" );
var id154 = stringIDToTypeID( "selectionModifierType" );
var id155 = stringIDToTypeID( "addToSelectionContinuous" );
desc29.putEnumerated( id153, id154, id155 );
var id156 = charIDToTypeID( "MkVs" );
desc29.putBoolean( id156, false );
executeAction( id150, desc29, DialogModes.NO );

// =======================================================
var id157 = charIDToTypeID( "slct" );
var desc30 = new ActionDescriptor();
var id158 = charIDToTypeID( "null" );
var ref24 = new ActionReference();
var id159 = charIDToTypeID( "Lyr " );
ref24.putName( id159, "Layer 1" );
desc30.putReference( id158, ref24 );
var id160 = stringIDToTypeID( "selectionModifier" );
var id161 = stringIDToTypeID( "selectionModifierType" );
var id162 = stringIDToTypeID( "addToSelectionContinuous" );
desc30.putEnumerated( id160, id161, id162 );
var id163 = charIDToTypeID( "MkVs" );
desc30.putBoolean( id163, false );
executeAction( id157, desc30, DialogModes.NO );
//// =======================================================
var id165 = charIDToTypeID( "Hd " );
var desc31 = new ActionDescriptor();
var id166 = charIDToTypeID( "null" );
var list1 = new ActionList();
var ref25 = new ActionReference();
var id167 = charIDToTypeID( "Lyr " );
var id168 = charIDToTypeID( "Bckg" );
ref25.putProperty( id167, id168 );
list1.putReference( ref25 );
desc31.putList( id166, list1 );
executeAction( id165, desc31, DialogModes.NO );

// =======================================================
var id169 = charIDToTypeID( "Mrg2" );
executeAction( id169, undefined, DialogModes.NO );
// =======================================================
var id2059 = charIDToTypeID( "Dlt " );
var desc349 = new ActionDescriptor();
var id2060 = charIDToTypeID( "null" );
var ref343 = new ActionReference();
var id2061 = charIDToTypeID( "Lyr " );
var id2062 = charIDToTypeID( "Bckg" );
ref343.putProperty( id2061, id2062 );
desc349.putReference( id2060, ref343 );
executeAction( id2059, desc349, DialogModes.NO );

// =======================================================
var id2063 = charIDToTypeID( "Dplc" );
var desc350 = new ActionDescriptor();
var id2064 = charIDToTypeID( "null" );
var ref344 = new ActionReference();
var id2065 = charIDToTypeID( "Chnl" );
var id2066 = charIDToTypeID( "Ordn" );
var id2067 = charIDToTypeID( "Trgt" );
ref344.putEnumerated( id2065, id2066, id2067 );
desc350.putReference( id2064, ref344 );
executeAction( id2063, desc350, DialogModes.NO );

// =======================================================
var id2068 = charIDToTypeID( "slct" );
var desc351 = new ActionDescriptor();
var id2069 = charIDToTypeID( "null" );
var ref345 = new ActionReference();
var id2070 = charIDToTypeID( "Chnl" );
var id2071 = charIDToTypeID( "Chnl" );
var id2072 = charIDToTypeID( "Blck" );
ref345.putEnumerated( id2070, id2071, id2072 );
desc351.putReference( id2069, ref345 );
executeAction( id2068, desc351, DialogModes.NO );

// =======================================================
var id2073 = charIDToTypeID( "Dlt " );
var desc352 = new ActionDescriptor();
var id2074 = charIDToTypeID( "null" );
var ref346 = new ActionReference();
var id2075 = charIDToTypeID( "Chnl" );
var id2076 = charIDToTypeID( "Ordn" );
var id2077 = charIDToTypeID( "Trgt" );
ref346.putEnumerated( id2075, id2076, id2077 );
desc352.putReference( id2074, ref346 );
executeAction( id2073, desc352, DialogModes.NO );

// =======================================================
var id2078 = charIDToTypeID( "Shw " );
var desc353 = new ActionDescriptor();
var id2079 = charIDToTypeID( "null" );
var list19 = new ActionList();
var ref347 = new ActionReference();
var id2080 = charIDToTypeID( "Chnl" );
ref347.putName( id2080, "Gray copy" );
list19.putReference( ref347 );
desc353.putList( id2079, list19 );
executeAction( id2078, desc353, DialogModes.NO );

this is the code i gt it i need a code that apply my channel that contains the registration mark to the all the channels depends on how many of the the channels i have 3 or 6 or 10 any number thanks again for your help

i get this code from the ScriptListener plugin that was shield with photoshop than you again

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 13, 2022 Jul 13, 2022

Copy link to clipboard

Copied

how i add another crop in the bottom of the page and how i move the one in the bottom

sarah252162545j8t_0-1657725142818.png

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 13, 2022 Jul 13, 2022

Copy link to clipboard

Copied

Edit the line 

var thePath = createPathWithMultiples(theArray, "aaa", [[50, 50], [500,200], [theWidth-100, theHeight-100]]);

to something like this 

var thePath = createPathWithMultiples(theArray, "aaa", [[50, 50], [theWidth-50, 50], [50, theHeight-50]], [theWidth-50, theHeight-50]]);

Another Array with two numbers in the array will result in another item. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 13, 2022 Jul 13, 2022

Copy link to clipboard

Copied

LATEST

thank you so much i did it with your help

var thePath = createPathWithMultiples(theArray, "aaa", [[50, 50], [950,50],[50,1100], [950,1100]]);

the Array code for all the marks

thanks for your help

thanks agin

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 13, 2022 Jul 13, 2022

Copy link to clipboard

Copied

is it possible or not?

thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines