Photoshop Rename layer if layer exists?

I need to rename "Original Layer" to Original Image" When this layer exists. In photoshop
I've been trying this, but I get this error
error "Can’t make «class cCLr» 1 of document \"DE00ER515.psd\" of application \"Adobe Ph
otoshop CS6\" into type boolean." number -1700 from «class cCLr» 1 of document "DE00ER515.psd" to boolean
tell application "Adobe Photoshop CS6"
          tell current document
                    if (quick mask mode) then delete channel ¬
                              "Quick Mask"
                    if layer "Original Layer" then ¬
                              set OriLayer to "Original Layer"
                    set OriLayer to make layer with properties {name:"Original Image"}
                    delete layer "Original Image"
          end tell
end tell

Thats still gave an error. The error it first runs into the if layer.....
this appears to work now like this.
tell application "Adobe Photoshop CS6"
          tell current document
                    if (quick mask mode) then delete channel ¬
                              "Quick Mask"
                    if (exists layer "Original Layer") then ¬
                              tell layer "Original Layer" to set name to "Original Image"
          end tell
end tell
Many thanks
Matt

Similar Messages

  • I just downloaded photoshop elements - have opened an existing pdf drawing - 1) I am trying to create layers; however, the option is not available? (i.e. greyed out rather than black) from the drop down menu - "layer" - "create new"? what do i do

    i just downloaded photoshop elements - have opened an existing pdf drawing - 1) I am trying to create layers; however, the option is not available? (i.e. greyed out rather than black) from the drop down menu - "layer" - "create new"? what do i do

    You'd better ask here:
    https://forums.adobe.com/community/photoshop_elements

  • Photoshop Elements 7 folder layer doesn't wanted to collapse. Need help!

    Hi all,
    Recently i purchased a catalog online, it is under .psd format and i assumed that everything is covered in layer which is editable.
    Not until then i downloaded and most of the content are under folder. Others work fine which i saw in internet tutorial which just only double click on it and they will show a drop down box.
    But in PSE7 , it doesn't. Instead, they asked me to rename it.
    I screenshot them and please refer below.
    I am working on window 7 OS btw

    Photoshop elements doesn't normally allow users to open, close or edit layer groups (layer sets), which are usually made in the full version of photoshop ( i.e. cs6 or cc2014)
    If you notice the pencil icon with slash to the right of the folder name in the layers panel means that layer group is not editable in pse 7.
    If you want to edit the layer groups you might use this action from over on elements village:
    Opening layer sets in PSE7 - Elements Village
    Or check out Elements+
    Ungrouping Layers

  • How to create new canvas at photoshop and apply a layer by layer name?

    How to create new canvas at Photoshop and apply a layer by layer name ?
    So simply what i want is
    Create a new canvas certain size such as 150x40 pixels
    Apply a layer to that canvas. Script will select the layer by layer name
    How can i do that these 2 simple things with Photoshop scripting
    CS6

    JJMack wrote:
    Something like var doc = app.documents.add(width, height, res);
    When you write Apply a layer what do you mean Script will select layer by name. A new document will have a background layer or a normal layer do you want to rename that there is onle one layer. Or do you want to add a layer by name what kind?
    thanks for answer. you know like background layer. for example when you are generating web buttons you are preparing background layers. it will select a layer like that.
    also can you post full script here if possible ? thank you.
    example : http://img12.imageshack.us/img12/844/examplepx.png
    after this i will write a text on that canvas but i will ask that after learnt this 2 steps

  • 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";

  • Photoshop cs6 error "could not use the type tool because the target channel is hidden.  happens when im typing in photoshop, go to another layer and then come back. can't alter text at that point

    photoshop cs6 error "could not use the type tool because the target channel is hidden.  happens when im typing in photoshop, go to another layer and then come back. can't alter text at that point.  i really need to get thsi figured out. thank you.

    You may have answered my question. I AM using the 64bit version of Illustrator CS6. I had no idea there were bugs in it that affected paths copied and pasted from Illustrator to Photoshop.
    A bit more about what I'm trying to accomplish... I'm trying to follow Deke's tutorial (http://www.deke.com/content/dekes-techniques-018-creating-a-3d-pie-chart) which is already difficult since so much has changed between CS5.5 and 6, but then on top of that, I keep getting errors!
    So I created the pie chart exactly as he shows and copied and pasted into Photoshop exactly as he does. Before submitting this post, though, I tried drawing just two very simple triangle shapes, copying them both and pasting them into Photoshop as a shape layer. The shapes weren't overlapping, but they were a part of the same shape layer just like the pie chart tutorial.
    Thanks for your help. If there is anything else I should try before just giving up because of the 64bit bugs, please let me know.

  • Mimic Photoshop's Bevel & Emboss layer style in Illustrator - how?

    Having searched for topics akin to my question, I have only really found tips on how to achieve a bevel and emboss on type.
    Here's what I'm trying to create... all using CS4...
    I have an artwork, all in Illustrator so far. It has background images of people (as cut-outs), imported from Photoshop, with layer masks, saved as PSD's, to preserve transparency around the figures, which allows me to compose them over each other and other various component graphics, resident in the Illustrator document. This helps me keep all the graphical elements fully editable in the design/layout as only the people come from Photoshop.
    The design has been finalised with the addition of a bevel and emboss layer effect, to the whole bounding box area of the design. I.e. the complete 900 x 700 pixel area is affected by the bevel and emboss - all the various underlying pixels of photoshop elements and Illustrator elements.
    So far, I have only been able to achieve this by taking the whole thing back into Photoshop, as a single layer and then applying the Bevel&Emboss layer style effect!
    Is there a way to keep this all in Illustrator?
    It seems daft to have to go back into Photoshop just for the B&E effect... and a little dangerous, in case this step gets overlooked in the future!
    My current thoughts involve a couple of shaped blends with a screen and multiply overlay setting for the light and shaded edges... but this is just my mind clicking!
    Would love to know if this can be achieved in Illy.

    Out of curiosity... and to better understand what Illustrator can do, I'd like to try both of your methods.
    However, I'm a little lost with your explanation of the second method...
    Can you expand on giving the "L" shaped path (that has been outlined): two fills?
    Or the rectangle that has been outlined: four fills?
    How do you give a shape more than one fill, gradient or otherwise?
    And how do you deal with the light and dark intersections of the two grad styles (as appears in the bottom left and top right corners), did the 45° meeting point just happen or do you have to alter the geometry?
    Any chance I could have the .ai file to pull apart?
    Another method I found myself, after some experimenting is as follows...
    Dotted white line = page/design bounds.
    Give 'Shape A' a white drop shadow (Effect > Stylise > Drop shadow) with a "screen" mode and positive values for X and Y offset. This gives a light shadow below and to the right.
    Make 'Shape B' a Clipping Mask for 'Shape A' - this leaves nothing but the drop shadow showing.
    Give 'Shape D' a black drop shadow (Effect > Stylise > Drop shadow) with a "multiply" mode and negative values for X and Y offset. This gives a dark shadow above and to the left.
    Make 'Shape C' a Clipping Mask for 'Shape D' - this leaves nothing but the drop shadow showing.
    Here's the result...
    Put the new geometry (light and dark bevel shapes) on a layer at the top and, hey presto, they'll influence anything on levels below.
    Only downside of this method is that the drop shadows can take a while to render, each time they are adjusted, so it's worth turning them off (or hiding their layer) while working on other areas of the design.
    Also, with all of these methods, you don't get quite the same intersections at the bottom left and top right corners, as you do with the bevel and emboss layer style/effect in Photoshop... but that's being really picky!
    Thanks for helping with this and hope it helps others.
    Still want to work through your methods though.

  • Am working with trial version of photoshop elements 12. Layer functions remain grayed out when trying to use.

    I'm working with trial version of Photoshop Elements 12. Layer functions remain grayed out when trying to use them.

    You need to have an image open in the main window.

  • Photoshop Applescript, select a layer and fill?

    How do I select a layer than I have named "BACKGROUND"
    Then fill with White,
    then select layer "Main Image"
    within Photoshop?
    Many Thanks
    Matt

    Hi,
    Here is an example :
    tell application "Adobe Photoshop CS5"
          tell current document
                deselect -- deselect all in the document
                set current layer to layer "BACKGROUND" -- select
                tell current layer to if not visible then set visible to true -- must be visible to fill
                --- fill the current layer with White , adjust (blend mode, opacity and preserving transparency)
                fill selection with contents {class:RGB color, red:255, green:255, blue:255} blend mode normal opacity 100 without preserving transparency
                set current layer to layer "Main Image" -- select
          end tell
    end tell

  • Rename layers with layer 1, layer 2 till and layer N

    My Name is Sathya Murthy
    I have psd files with many layers each with different names
    I want to rename the layer which i have selected using right click with name Layer 1
    Next layer which I right click with layer 2 and so on till layer N
    and layers with are left out without renaming should be put in a new layer set or group in layers separately in the same file.
    which i have opened
    and layers should be arranged like this
    till Layer N
    Layer 4
    Layer 3
    Layer 2
    Layer 1
    Group or Layer Set
    Background
    I hope you understand what i am saying
    I want scripting for that action as I have more files to rename layers so by using scripts i can work little bit faster
    anyone knowing please help
    Thanks In Advance
    Sathya Murthy

    I don’t think one can select Layers in the Layers Panel or on the Canvas while a Script is running.
    One could select the Layers via a dialog, but that would take focus and need to present a list of the Layers.
    Alternatively it might be possible to set up a work-around by selecting a Layer, invoking a Script (either by Keyboard Shortcut or from a Configurator Panel) that stores data (the activeLayer in this case), repeating that as often as needed and at the end of the selection process trigger another Script (or possibly the same with the shift-key pressed) that then processes that stored information.
    But maybe someone else has more insightr or a better idea.

  • Moving Objects from Layer to Layer

    Yes I knwo this is probably a very naive question but I'm
    learning Flash 8 here and it says nothing in the documentation
    about moving an object from one to layer to another. I'm sure in
    Flash 5 you selected the object and then simply clicked the layer
    which you wanted it on. This seems to have changed and Adobe/MM
    have forgotten to say how you do it now.

    When you say "move" an object from layer to layer - you
    simply want to cut the object on the stage
    in one layer and paste it in place on another? You will have
    to manually cut and paste it. Flash 5
    or any previous version never had an "auto-move" feature,
    esprcially the way you describe: "...you
    selected the object and then simply clicked the layer which
    you wanted it on..."
    That type of functionality would be disasterous - if any
    object on stage was selected and then you
    clicked on a layer would force that object to move to that
    layer, would cause major headaches and
    render the program unusable - because 99% of the time, anyone
    who was not wanting to move the object
    would have a very hard time keeping them on the intended
    layer while tying to use other features in
    flash (like renaming layers, or moving the stacking order of
    layers, or creating layer folders or
    motion paths or mask layers, etc...
    Are you really asking about "merging" 2 layers together?
    --> **Adobe Certified Expert**
    --> www.mudbubble.com
    --> www.keyframer.com
    Sean Sykes wrote:
    > Yes I knwo this is probably a very naive question but
    I'm learning Flash 8 here
    > and it says nothing in the documentation about moving an
    object from one to
    > layer to another. I'm sure in Flash 5 you selected the
    object and then simply
    > clicked the layer which you wanted it on. This seems to
    have changed and
    > Adobe/MM have forgotten to say how you do it now.
    >

  • How to separate layer in layer palette using colour?

    How can I separate the layer in layer palette using colour to increase the visualbility like the image below?

    You could right click on the eye in the layer thumbnail
    or from the layer panel flyout, select layer/group properties.
    MTSTUNER

  • ISDN BRI layer 1 & layer 2 do not sustain "active" statuses

    Hi Expert,
    I have some routers which can not sustain the ISDN layer 1 & layer 2 statuses correctly. Whenever, the ISDN line is manually activated or the ISDN BRI ports are manually reset, the layer 1 & layer 2 statuses become active but they become deactivated after a while. I have changed the ISDN module and the same symptom is observed. Would you advise what is the cause and resolution. Your advice in this matter is greatly appreciated.
    Thanks and Regards,
    Jason Peh

    Hi Rick,
    Below is the show interface for BRI1/0,
    router_2#sh isdn status
    Global ISDN Switchtype = basic-net3
    ISDN BRI1/0 interface
    dsl 8, interface ISDN Switchtype = basic-net3
    Layer 1 Status:
    DEACTIVATED
    Layer 2 Status:
    TEI = 66, Ces = 1, SAPI = 0, State = TEI_ASSIGNED
    Layer 3 Status:
    0 Active Layer 3 Call(s)
    Activated dsl 8 CCBs = 0
    The Free Channel Mask: 0x80000003
    router_2#sh int BRI1/0
    BRI1/0 is up (spoofing), line protocol is up (spoofing)
    Hardware is BRI
    MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec,
    reliability 255/255, txload 1/255, rxload 1/255
    Encapsulation PPP, loopback not set
    Last input 00:04:39, output 00:04:39, output hang never
    Last clearing of "show interface" counters 24w4d
    Input queue: 0/75/0 (size/max/drops); Total output drops: 0
    Queueing strategy: weighted fair
    Output queue: 0/1000/64/0 (size/max total/threshold/drops)
    Conversations 0/1/16 (active/max active/max total)
    Reserved Conversations 0/0 (allocated/max allocated)
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    27807 packets input, 207167 bytes, 0 no buffer
    Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
    0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
    27921 packets output, 209138 bytes, 0 underruns
    0 output errors, 0 collisions, 551 interface resets
    0 output buffer failures, 0 output buffers swapped out
    1680 carrier transitions
    router_2#sh int BRI1/0:1
    BRI1/0:1 is down, line protocol is down
    Hardware is BRI
    MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec,
    reliability 255/255, txload 1/255, rxload 1/255
    Encapsulation PPP, loopback not set
    Keepalive set (10 sec)
    LCP Closed, multilink Closed
    Last input 04:59:17, output 04:59:17, output hang never
    Last clearing of "show interface" counters never
    Queueing strategy: fifo
    Output queue 0/40, 108 drops; input queue 0/75, 1 drops
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    7434 packets input, 1689890 bytes, 0 no buffer
    Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
    2 input errors, 0 CRC, 1 frame, 1 overrun, 0 ignored, 1 abort
    10743 packets output, 782350 bytes, 0 underruns
    0 output errors, 0 collisions, 0 interface resets
    0 output buffer failures, 0 output buffers swapped out
    4682 carrier transitions
    router_2#sh int BRI1/0:2
    BRI1/0:2 is down, line protocol is down
    Hardware is BRI
    MTU 1500 bytes, BW 64 Kbit, DLY 20000 usec,
    reliability 255/255, txload 1/255, rxload 1/255
    Encapsulation PPP, loopback not set
    Keepalive set (10 sec)
    LCP Closed, multilink Closed
    Last input 04:59:22, output 04:59:22, output hang never
    Last clearing of "show interface" counters never
    Queueing strategy: fifo
    Output queue 0/40, 3 drops; input queue 0/75, 3 drops
    5 minute input rate 0 bits/sec, 0 packets/sec
    5 minute output rate 0 bits/sec, 0 packets/sec
    6902 packets input, 1530090 bytes, 0 no buffer
    Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
    3 input errors, 0 CRC, 3 frame, 0 overrun, 0 ignored, 3 abort
    7527 packets output, 594592 bytes, 0 underruns
    0 output errors, 0 collisions, 0 interface resets
    0 output buffer failures, 0 output buffers swapped out
    25 carrier transitions
    I have another router with the same configuration and the statuses are able to sustain correctly. Thus, I doubt that the backup interface command has any effect on the layer 1 & layer 2 statuses.
    Best Regards,
    Jason Peh

  • Photoshop CS5 Hangs on Layer Group name edits

    Layer Group name edits are causing my PS CS5 to hang repeatedly. At first I thought it was the document I was working in, so I created a generic document, and was able to replicate the problem in the new document.
    With a .psd open, in the layers pallete, I have a Layer Group (A) that contains multiple sub layer groups (B) which contain additional sub layer groups (C). So the hierarchy is a three level layer group. At the sub-most layer group (C) I need to rename the groups to "Three-set colors". Since I have fifteen groups that all need the word "Three" in their labels, it would be most convenient to be able to highlight the word "Three", copy to clipboard and paste. I type in the word "Three" in the layer group name (not in the properties insector) and highlight the word "Three". Thats when PS CS5 hangs, and I have to reboot my system to unfreeze Photoshop. Only Photoshop hangs, the system does not crash. This happens in both 64 and 32 bit, old or new docs.
    The plugins I have are Mask Pro x64 (OnOne) and Sitegrinder x32 (Medialab), but they are not activated when the hang occurs.
    Any ideas?
    PS CS5 12.01 x64
    Win 7 Ultimate
    12 gb ram
    i7 960 @ 320
    ATI Radeon HD 5700
    4x HD's

    I wasn't able to reproduce the problem with either Photoshop CS5 32 bit or x64.  That says there's something different about our systems, and that there's likely not a systemic problem in Photoshop.
    Chris Cox, who replied above, is an Adobe Engineer, by the way.
    I was able to replace parts or all of the names with, or insert the word Three in front of existing layer names.
    Are you seeing any errors in your Windows system logs at the time the hang is occurring?
    Have you updated all your software (e.g., video drivers, Windows Updates, etc.)?
    -Noel

  • Rename elements in Layer Pallette

    Would be great to have the ability to rename all the elements in the layer pallette, just like in Photoshop. As it stands if I have 100 rectangles on a page, they are all just called "Rectangle" there is no way to differentiate between them.

    Put this suggestion under "Ideas for Muse"

Maybe you are looking for