Photoshop layer redesign, rename the script for Illustrator

The Photoshop scripting guru Paul R more to RetouchPro has created a really cool to rename script and layers of selected Photoshop batch numbers. I did find something similar on the side of the Illustrator.

He gave his permission for me to post it here in hopes that some Illustrator scripting genius could come up with a similar script for Illustrator. It would be terribly difficult to convert into something that could use Illustrator?

http://www.mediafire.com/file/g7usr73u0236p0a/rename _ & _Renumber_Selected_Layers.jsx

http://www.mediafire.com/file/dbah74x13bsa74c/rename _ & _Renumber_Selected_Layers.jsx.zip

rename-layers.png

Hola Julio, I updated the script to rename the sublayers or visible layers and also fixed the color

#target illustrator

main();
function main(){
    if(!documents.length) return;
    //var allLayers = app.activeDocument.layers;
    var win = new Window( 'dialog', '' );
    g = win.graphics;
    //  var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.99, 0.99, 0.99, 1]); // CS5
    var myBrush = g.newBrush(g.BrushType.SOLID_COLOR, [0.50, 0.50, 0.50, 1]); // CS6
    g.backgroundColor = myBrush;
    win.orientation='stack';
    win.p1= win.add("panel", undefined, undefined, {borderStyle:"black"});
    win.g1 = win.p1.add('group');
    win.g1.orientation = "row";
    win.title = win.g1.add('statictext',undefined,'Rename Visible Layers or Sublayers');
    win.title.alignment="fill";
    var g = win.title.graphics;
    g.font = ScriptUI.newFont("Georgia","BOLDITALIC",22);
    win.g5 =win.p1.add('group');
    win.g5.orientation = "column";
    win.g5.alignChildren='left';
    win.g5.spacing=10;
    win.g5.st1 = win.g5.add('statictext',undefined,'New layer name');
    win.g5.et1 = win.g5.add('edittext');
    win.g5.et1.preferredSize=[250,20];
    win.g10 =win.p1.add('group');
    win.g10.orientation = "row";
    win.g10.alignment='fill';
    win.g10.spacing=10;
    win.g10.st1 = win.g10.add('statictext',undefined,'Serial Number');
    win.g10.et1 = win.g10.add('edittext',undefined,'1');
    win.g10.et1.preferredSize=[50,20];
    win.g10.et1.onChanging = function() {
      if (this.text.match(/[^\-\.\d]/)) {
        this.text = this.text.replace(/[^\-\.\d]/g, '');
      }
    };
    win.g10.st1 = win.g10.add('statictext',undefined,'Length');
    var nums=[2,3,4,5];
    win.g10.dl1 = win.g10.add('dropdownlist',undefined,nums);
    win.g10.dl1.selection=0;
    win.g15 =win.p1.add('group');
    win.g15.orientation = "row";
    win.g15.alignment='fill';
    win.g15.cb1 = win.g15.add('checkbox',undefined,'Reverse layer order');
    win.g15.cb2 = win.g15.add('checkbox',undefined,'Rename Sublayers Only');
    win.g100 =win.p1.add('group');
    win.g100.orientation = "row";
    win.g100.alignment='center';
    win.g100.spacing=10;
    win.g100.bu1 = win.g100.add('button',undefined,'Rename');
    win.g100.bu1.preferredSize=[120,30];
    win.g100.bu2 = win.g100.add('button',undefined,'Cancel');
    win.g100.bu2.preferredSize=[120,30];
    win.g100.bu1.onClick=function(){
        if(win.g5.et1.text == ''){
            alert("No layer name has been entered!");
            return;
        }
        win.close(0);

        var sublayersOnly = win.g15.cb2.value;
        var visibleLayers = [];
        getVisibleLayers (app.activeDocument, visibleLayers, sublayersOnly);

        if(win.g15.cb1.value) visibleLayers.reverse();

        for(b=0; b 
         

Tags: Illustrator

Similar Questions

  • What is the price for illustrator only as a student?

    I want to buy the cartoonist and Illustrator only since the package is too expensive. So, what's the price for illustrator only as a student?

    Student software discounts, eligibility student | Adobe

    $19.99 / month

    Call the 800-585-0774 if you have questions, this is a forum for application support and that we are not dirty.

  • I have problem with my account. I did uptade my assinature to 27/08/2015 and my photoshop is blocked, because the date for uptade is with 22/09/2015. I need urgently. What do I do? Thank you

    I have problem with my account. I did uptade my assinature to 27/08/2015 and my photoshop is blocked, because the date for uptade is with 22/09/2015. I need urgently. What do I do? Thank you

    Hi Camila,

    You will need to contact support by calling/chat for this request.

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    Kind regards

    Sheena

  • How can I create a gif image using photoshop. I mean photoshop shortcut keys and the steps for creating gif

    How can I create a gif for my blog [url removed by host] image using photoshop. I mean photoshop shortcut keys and the steps for creating gif

    CTRL + Alt + Shift + S Windows Mac CMD + Option + SHIFT + S change the image that you normally edit images.

  • How should be written the script for the use of the maximum memory of the guest operating system ever?

    How should be written the script for the use of the maximum memory of the guest operating system ever?

    Please teach the name of the object and the type and order, etc.

    You should be able to do it with the cmdlet Get-Stat .

    Something like that

    Get-Stat -Entity (Get-VM $vmName) -Stat mem.usage.maximum -Start (Get-Date).AddDays(-7) | Measure-Object -Property value -Maximum | Select Maximum
    

    This will return the maximum percentage in the last 7 days for the guests, whose name is stored in the variable $vmName.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • The script for any necessary Questions?

    I have a form with a table, and according to the answer selected in the left column, which is a menu drop-down fields in the testament becomes necessary.  Sounds confused when I read that, but what I mean is if someone selects YES in the drop down menu to rows1 and 2 and no. 3-6, then the rest of the fields in lines 1 and 2 become necessary and text must be added or drop-down menus should have a valid response that is selected is not the case in the rest of the table.

    The table looks like this:

    Order book?    Author title ISBN\Publisher Total requested readoptions?   Mandatory?

    (Combo O/N)  (Text)   (Text)  (2 text fields seven.)   (Text)     (Drop down list) (Drop down list)

    1.

    2.

    3.

    4.

    5.

    6.

    The answers become necessary in the sense that they must be filled in before the form can be sent and not in the sense that one can only be filled if the previous is answered.  It might be too much for people filling out the form to ensure that the previous field is entered before proceeding to the next.  The entire table is visible already, so I need the fields become visible when you select YES, even though I see the advantage in this too.  Can I have the scripts for the two formulas, as I can do the fields become visible when you select YES (this text cannot be entered if they choose No.) and had to complete before submitting?

    Oh, another thing I want to do is make 1 selection in a menu drop down not valid.  I have a list of *, YES and NO.  I want to do the * not recognized as a valid answer.  Thank you for your time and patience.  I know that this question probably belongs in the forum script, so I'll add it there too.

    If you ask about the function "setRequired", it is intended to be added to the document in function at the level of the document. To create one, select: Advanced > Document Processing > Document JavaScripts

    Add a new one, giving it the name of your choice, remove the skeleton of the service it provides by default and past the above function code. Then, you call the function as shown.

    If you ask what I was discussing the last paragraph, which would be a new script that checks the fields before sending is permitted to take place. I did not code for this. It would also be a script at the level of the document.

    In addition, you should consider what to do if the select user or not, the rest of the line is finished and then later has a change or heart and selects «*» It seems that it would be wise to clear the values in the other fields on the line, but the script currently does not. If you want to only it and get stuck, post again.

  • Using the script for import and export

    Hello

    Can any such a me what is the use of the script for import and export.

    After you move the pages from / to server what is the need to import / export command.

    export/oracle/apps/ap/setup/webui/customizations/site/0/SetupPG - rootdir < destination path > - user < database username > - password < database password > - dbconnection "(description = (address_list = (address = (community = tcp.world) (protocol = tcp) (host = < host name > (port < port id > =))) (connect_data = (sid = < sid >)))".) "

    Thanks in advance,
    Roselyne

    Hi Flo,

    Page and the region are stores in database import/export we really want pages/areas to store in the database.

    Thank you
    -Anil

  • Is there a way to change the color layer tag via the Script?

    I tried to use the listener from Script to find the event to change the color of the layer tag, but there is no order saved on my desktop. I've scoured the forums and the depths of huge... ooogle and nothing is helping.

    I checked the API for an Art Layer and found no option to assign a color label.

    I want to change the color tag of the:

    Capture.JPG

    The purple color of the tag:

    Capture2.JPG

    Could someone please help point me in the right Direction?

    Just solved my own question:

    Photoshop has been weird so I had to change the color 2 times for the event must be recognized... idk why but it worked: here is the code:

    desc66.putReference (idnull, ref55);

    idT var = charIDToTypeID ("T");

    var desc67 = new ActionDescriptor();

    var idClr = charIDToTypeID ("Clr");

    var idClr = charIDToTypeID ("Clr");

    var idVlt = charIDToTypeID ("Vlt");

    desc67.putEnumerated (idClr, idClr, idVlt);

    var idLyr = charIDToTypeID ("Lyr");

    desc66.putObject (idT, idLyr, desc67);

    executeAction (idsetd, desc66, DialogModes.NO);

  • Drag and drop into Photoshop layer without resizing the image source

    Hello

    I use Photoshop CS5, 64-bit Windows 7.

    I went through the next steps and do so that I'm not:

    1. open an existing file of photopshop.

    2. in the window my file Explorer, select 100 png files and drag to open the photoshop image chart area.

    Result: Photoshop resizes the png file and place it under a coat. She also asked me to commit the sizing for each individual file, I did slip and fall. Sometimes it takes like 100% scale, sometimes, 98%, sometimes of 102%. If I change to 100%, then it is not the original size. The image become larger and blurry.

    Expected result: place 200 png as a separate layer of the photopshop opened without resizing files.

    My png files are icons that do not require resizing. I can't change 200 pictures just to get it to the original size!

    I tried other things:

    I disabled the "Preferences-> general-> Resize Image in Place. I also disabled "Place or Drag Raster Images as smart objects".

    I always get the same result. I don't need anything smart here. Let me only to place images without any intelligent substance!

    I also went to help and google. I couldn't find what I need.

    Thank you!

    You can try file > Scripts > load files into stack.

    MTSTUNER

  • You will need to run the script for some ESX hosts.

    Dear team,

    I m connected to 4 esx host, but I want to run the script only 2 esx host asking you to help me how to do?

    concerning

    Mr. VMware

    You could start the script with the cmdlet Get-VMhost to select only the two hosts that you want to output to. For example:

    Get-VMHost host1, host2. Get - VM

    Displays only the virtual machine running on host1 and host2.

  • Where can I download the scripts for sample IX, SH patterns for 11g

    Hello

    I installed the server Oracle 11 g without sampling schemes. In the standard schema of the sample set, we had an example of information Exachange schema (queue) and a Historyschema of sale. However I don't get the sample scripts for these two schemas in my repertoire of the demo.

    Can you please let me know where I can get access to the scripts?

    I have a requirement for an OLTP data store that can receive a high volume of data from an external system (Expecting max of 6 GB of data). I decided to create a separate schema, with dedicated storage spaces, it's a good idea to have a data file with a maxsize put 6 GB or to have a set of 3 from 1000 m managed locally and a maximum size of 2 GB each. There is not many necessary index, but I need to set up a queue and on the queue as well. If I create this schema that make them I need to revisit my groups redolog or temp table size as well to keep my performance of existing database intact?

    Are there guidelines to follow for a scheme where you expect a large amount of standard data, multiple queues?


    Thank you very much
    Chauvin

    user13057029 wrote:
    Hello

    I installed the server Oracle 11 g without sampling schemes. In the standard schema of the sample set, we had an example of information Exachange schema (queue) and a Historyschema of sale. However I don't get the sample scripts for these two schemas in my repertoire of the demo.

    Can you please let me know where I can get access to the scripts?

    http://docs.Oracle.com/CD/E11882_01/server.112/e10831/installation.htm#COMSC00002

    >

    I have a requirement for an OLTP data store that can receive a high volume of data from an external system (Expecting max of 6 GB of data). I decided to create a separate schema, with dedicated storage spaces, it's a good idea to have a data file with a maxsize put 6 GB or to have a set of 3 from 1000 m managed locally and a maximum size of 2 GB each. There is not many necessary index, but I need to set up a queue and on the queue as well. If I create this schema that make them I need to revisit my groups redolog or temp table size as well to keep my performance of existing database intact?

    Are there guidelines to follow for a scheme where you expect a large amount of standard data, multiple queues?

    Ask this question in a separate thread.

    Aman...

  • Question in regards to the script for automatic filling check box

    Hello everyone.  First of all, let me say a big thank you to all the users, but also the admins of this forum.  As a user of LiveCycle newbie, I learned an incredible amount of research on the forum and reading of others.  Now, to my current question...

    I use a custom form created in LiveCycle ES 8.2 and wonder how to empower a checkbox to fill automatically (IE. 'on') based on a number entered in a numeric field by using a range of criteria.  To be more precise, I have (5) checkboxes that will be labeled as follows:

    Name: CheckBox1 < 500

    Name: CheckBox2 500-999

    Name: CheckBox3 1 000-1 499

    Name: CheckBox4 > 1 500

    Name: Checkbox5 no

    I don't want only a SINGLE checkbox auto fill based on a certain number I enter the numeric field (called "NumericField1").  For example, if I enter "889" number, I want only CheckBox2 AutoComplete in.  Not sure what script to use in the Script Editor for this.  Any help would be greatly appreciated.  Thank you very much in advance.

    MJ

    You are welcome. I added a second numeric field. NF1 is entered by the user option. NF2 is calculated field read-only to mimic your form. NF2 simply takes the value of nf1. I moved the logic of radio button in the radio button exclusion group calculate event to produce the results below. I think that's what you're after. The updated form is attached.

    Steve

  • Rename the script file.

    I guess this is possible through the script, but as I am new to scripting I'm just dipping my toes for that.

    I have a number of actions, produce a variety of effects / tone. For a specific job, I need run each action one by one and the result output as a new PSD file using the name of the Action as filename for the PSD document.

    IE:

    FILE. PSD

    perform the action "Blues of shadows."

    FILE. PSD saved to folder as "Blues of shadows. PSD'

    How to get to this point, someone pointers?

    Thank you.

    I have already written a few years ago.

    http://PS-scripts.CVS.sourceforge.NET/ViewVC/ * Fund * / ch-scripts/xtools/apps/ActionSetRu nner.js

    It should do what you want.

    X

  • The Script for the calculation of the Vs Web planning security

    Hi all

    I loaded a few accounts one read access to planning and these accounts are calculated by the calculation script. So if the user starts the calculation script will run even if I read access assigned to members in web planning? Read in planning web access has no control over the data which are calculated via the calculation script?

    Please advise!

    Hello

    Why don't you just use of rules of business instead of calc scripts, you have added security and can limit the calculations for what's on forms using variables.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to pass the parameter to the script for interface/Package in ODI

    Hello

    Yesterday I asked a question how to pass a parameter to run the script interface or the procedure?

    I don't know if it's possible.

    Any clarification will help you.

    Kind regards

    Mahesh

    Mahesh, why not try this in your machine? This will give you more clarity and confidence.

    ODI has always check if there is any variable used inside an object regardless of the interface or procedure or package. So whenever you generate the script, you will be asked to select the boot parameters. She's. Whenever you use this scenario, make sure you that you add the variables in the additional variables section of the Properties tab.

    So answer is that it is possible.

    Bravo!

Maybe you are looking for