Can I rename *selected* layers with scripting?

Hello forum,
Let me just start off by saying I know NOTHING about Photoshop scripting.
But I recently encountered a need to rename a whole stack of layers in a certain file, so I went Googling...
I came across this Rename Layers script --
However, I was specifically interested in only renaming the layers that I have got selected in the Layers panel.
This script unfortunately renames *ALL* layers in the document.
Is it even possible to do what I want?

Is it even possible to do what I want?
Yes. And the simplest thing to do is ask Trevor (the author) to tweak the script for you. If he's not slammed with other work, he should be able to help you out.

Similar Messages

  • Batch rename selected layers

    I'm trying to find a script that can help batch rename/renumber a group of selected layers.
    So far I've been able to find a script that renames every single layer in a Photoshop document (overkill). Or there's the CS6 Tab rename trick (too slow).
    I routintely export PSDs from Illustrator for use in After Effects. But in Photoshop, I'll get a couple hundred layers named <path> or <path> + <path> or <group>. Renaming by hand is out of the question. But I don't want to rename every layer the same.
    Any suggestions?

    I wrote one for you here... names.html

  • If Are all the pictures can be enlarged to 160% with script in indesign cs6?

    a book is composing ,but the gest feel the picture is too small,all want to  enlarged to 160%,
    but there is Thousands pictrure, It is could be Achieve with script?
    just like thist

    @喜狼_edny – if you are using my script snippet, there is a undo in one go for the whole action.
    Furthermore if used with images anchored, make sure that the anchor settings are appropriate before.
    (The container below is locked and will not scale)
    Anchor settings with wrong anchor reference point settings (German UI):
    After scaling (new position according to the anchor settings):
    Second try with different anchor settings:
    After running the script:
    Note: images locked or images on locked layers will not be scaled.
    This could be expanded. Eg. for images positioned on not visible layers.
    Images on the pasteboard etc.pp.…

  • How can I block selected cookies with Ver. 3.6.3?

    How can I block selected cookies? This feature seems to be missing on 3.6.3! Is there an addon?
    == This happened ==
    Every time Firefox opened
    == When I upgraded to Version 3.6.3

    I think the question here (or at least mine) is how to block cookies based on *their name*, instead of their source site. E.g. how to stop Google's data mining and user profiling mania, based on numerous cookies with name __ut* . The source of these cookies is not Google. They are first party cookies, "provided to you" by the sites you visit, which delegate the hit counting to Google analytics.

  • Can't nudge selected items with keyboard arrows

    When I select an object or layer and try to nudge the
    selection around with the arrow keys, I get no response.
    I searched the preferences and can't find this to be a
    setting, and I trashed my preferences file figuring this can't be
    default behavior - but it appears to be.
    I just tested this in Fireworks 8 and CS3 (Mac). It works in
    8 but not in CS3.

    I've been having the same issue with CS6
    It's maddening. Like sometimes the keyboard doesn't work. The same thing happens with mouseclicks trying to select an object. I have to click numerous times to get a selected object.
    This isn't just a time lag or memory issue. I literally can't get an object by clicking and then arbitrarily sometimes I can after a few clicks. The arrow and shift keys are randomly not working at all either!!
    OSX Lion Macbook Pro 8Gb RAM and an i7 processor. I don't have any similar issues in any other program.

  • Can I rename my library with Finder without problems?

    I just realised that my library still has the name I gave it when I was trialing the software. Can I rename this in finder or Aperture simply and without any issues or large exercises emerging?

    You should be able to change it just fine but do realize that you will either have to double click on the new name, use the option key when starting Aperture, or change the Aperture prefs to open the new name.

  • Can't select layers with transparency

    Hello all!
    Some things just happend and I have no idea why.
    1. I can no longer nudge grouped layers. Photoshop complains that it cannot nudge layers in a group. I'm pretty sure I have done this many times before, so I guess I'm doing something wrong here.
    2. When I try to move a layer selected in the layer panel (or selected via ctrl-alt-right click), a click on the layer selects the layer effect above instead.
    It seems like there is some kind of click through enabled. If I click on a transparent part of the layer, the layer below get selected instead.
    My first thought was that this had something to do with "Autoselect layer/group", but it's disabled.
    This drives me crazy, how can I go back to normal mode, so I can click anywhere in a layer, transparent or not, and move the items in it etc?
    (I'm using Photoshop CS6.)
    Thanks in advance!

    1) Is a Selection active?
    What is the exact meassage?
    2) Could you please post a screenshot with the pertinent Panels visible?
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by keeping command-alt-shift/ctrl-alt-shift pressed while starting Photoshop after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)?

  • Can you hide a layers using scripting?

    I have a very complex graphic with many elements and I would like to find a way to hide layers based on a list.  In the documentation that there is a way to tell if a layer is hidden, but didn't see anything about a way to actually to control the hide/unhide property.  Is this possible?

    Thanks Larry,
    The script came back with an error on this line:
    var ilayer = doc.layers("AuthorLine")
    Error message was:
    "Layers() is not a function."
    (If it matters, I am using Adobe Illustrator CS5.1.   I'm not sure if the functions are substantially different.)

  • How can i change brush type with script?

    I can already set the width, size of it, but i cant find out how to change the type. Even script listener dont produce the needed code for it.

    Never mind. I managed to do it, script listener did produce the code, i just didnt find it at first. I meant brush style by type.

  • HT5538 Is there anyway I can use just my phone number as my iMessage contact, I can't even select it with my email as it is greyed out

    I Have an iPhone 5S and I'm just wanting to use my phone number as my iMessage contact. It only comes up with my email and everyone I iMessage say it only comes up with my email that is enabled and I want to just use my number to have the contact still saved. When I go to enable my number it is 'greyed out'

    Hi Aylamcguire,
    Welcome to the Apple Support Communities!
    Make sure “Start New Conversations From” is set to your phone number. If it already is and/or messages continue to be sent with email address, it may be necessary to delete the message thread you already have going and start a new thread after your phone number is selected as the way to start a new message. 
    iOS: Troubleshooting Messages
    Select your phone number when Sending iMessages in Settings > Messages > Send & Receive > Start New Conversations From.
    Have a great day,

  • Can not rename extracted image with extract for bracket. How to fix this ?

    when i try to renmae  and enter , it cretes new line
    how to renmae and change extension of image ?

    Thanks, John T Smith for you suggestion. And its a upcoming feature of BRACKET and ADOBE EXTRACT which is not now available. I've created an issue on GitHub and got responsose there.

  • Script for renaming selected shape layer items

    Does anyone know if such a script exists?
    That is to say, a script that renames the selected sub-items of a shape layer (paths, groups, shape generators etc).
    Am aware there's already scripts to rename selected layers and layer masks. Have attempted to rewrite these to deal with shape layer items, but to no avail.
    Many thanks

    I was able to rename them using these:
    "Path 1"
    app.project.item(1).layer("Shape Layer 1").property("ADBE Root Vectors Group").property("ADBE Vector Group").property("ADBE Vectors Group").property("ADBE Vector Shape - Group").name = "MY NEW PATH NAME";
    "Shape 1"
    app.project.item(1).layer("Shape Layer 1").property("ADBE Root Vectors Group").property("ADBE Vector Group").property("ADBE Vectors Group").property("ADBE Vector Graphic - Stroke").name = "MY SHAPE NAME";
    "Fill 1"
    app.project.item(1).layer("Shape Layer 1").property("ADBE Root Vectors Group").property("ADBE Vector Group").property("ADBE Vectors Group").property("ADBE Vector Graphic - Fill").name = "MY FILL NAME";
    "Group 1"
    app.project.item(1).layer("Shape Layer 1").property("ADBE Root Vectors Group").property("ADBE Vector Group").property("ADBE Vectors Group").property("ADBE Vector Group").name = "MY GROUP 1 NAME";

  • Can we have the 'select list with submit' type within a tabular form?

    An item can be the "Select list with submit' type so a form has no problem with it. However, when I built a tabular form manually, I couldn't find this type. There are only three types avaiable: "named", "static", and "dynamic".
    Is it possible to have the "submit" type so columns of the tabular form can be dynamically rendered based on the user inputs?
    Another question I have is how to dynamically build the tabular form with decode func. For example, if the value of col_1 is 'val_1', then build a select list in col_2; otherwise null in col_2.
    I tried to use
    select col1,
    decode (col1, 'val_1', select htmldb_item.select_list_from_lov(2, first, 'lov1') from dual, null)
    But it didn't work.
    I'd like to know whether it's feasible to have something like that.
    Message was edited by:

    You could use a region of type PL/SQL function
    returning SQL query to dynamically build this kind of
    tabular form. However if you want to use the built-in
    multi-row insert, update and delete processes, all
    items in a column must have the same display type. Marc, thanks for the quick reply. I appreciate it.
    I got your idea. However, I need to have the javascript 'ToggleAll' as the heading so the form works as same as the built-in one. If I put the query definition into a pl/sql procedure, where I can put this html tab attribute? It can not be inside the checkbox function, otherwise the checkbox of any row would act as same as the header.
    I hope I've made this clear.
    To Vikas: It's our clients who want this, not us. :(

  • How to access the value of fiedl ( select list with redirect )

    WE created one report and form. When i click in the edit button of the report
    for the specific record ; the system go automatically in the form
    and show me all the information. In my form ia have some fields ( select list with redirect ) in this way i store the key but i can see the description.
    I want to control the delete operation in checking the value of some field
    in my form. How can i do that. When i verfy the content with SESSION
    my variable are empty
    Marc Fortin

    Hello Larry,
    You can use a select list with submit and create a branch to the page you want to go to.
    Hope that helps.

  • How to write select statement into SCRIPT editor

    i build a sap script for purchase order printing for exporting.
    now after all po order print fine then our client want some more should be print into layout regarding po header.
    At the soul my q is can i write select query into script editor itself.
    thanks and regards

    You cannot write your select statement inside your SAPscript, to overcome this SAP has provided us an option of calling sub-routines.. go through the below example
    Go through this example
    /: PERFORM <Subroutine name> IN PROGRAM <subroutine prog name>
    /:USING &<field name>&
    /:CHANGING &<field name1&    "It will be returned back from sub-routine
    Then create subroutine pool program(of your own name) and you have to write the code.
    FORM ><subroutine name> tables int_cond structure itcsy
    outt_cond structure itcsy.
    data : value(20), value1(20). "do your own declarations
    Read int_cond table index 1.
    value = int_cond-value.
    value1 = value1 + value.
    *****Write your select statement
    Read outt_cond table index 1.
    outt_cond-value = value1.
    Modify outt_cond index 1. 
    Just rough idea given above.

Maybe you are looking for

  • Can I return my 8G for 16G

    Well, I just bought the 8G phone on Sunday!! Can I return it for the new 16 (plus a $100)?

  • Can`t get MacBook Pro game App`s in Brazil! Why?

    I`ve been trying to buy game app`s in Mac App Store but they are not available in Brazil`s Apple site. Why? Is it possible to do it through US or Canadian Mac App Stores?

  • /boot Partiton on One Flash Drive, Multiple Arch Installs

    I have read some people have done this, but I have yet to find clear guidance on the topic from perusing BBS (maybe I cannot find the right thread) or the Arch Wiki, but if I wanted to put boot on a flash drive, and have that flash drive handle diffe

  • Adobe professional version 8 issue

    I am in a document that I want to change my font type and I get the following error message"no avail system fonts can not add or delete text" Evidently the font I need is helvecchia condensed font my version of office is 2003 so I am not sure if it i

  • Simple pulse generation toggle

    Below is an excerpt from the 6602 manual.  The figure may not show so I've attached a word document showing it.  I want to do exactly what this says but am not sure how to make it happen.  I need to generate a quadrature signal and I think this would