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

Similar Messages

  • 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.

  • Using Photoshop scripting copy a layer and paste into another document at a particular selection

    I want to copy a layer of a document and paste it into another document in the particular layer selection..

    Thanks Badunit for your quick response
    I have found the answer - it is a incompatabilty between CopyPaste Pro and Numbers: -
    Thanks dbg1596 - solved my problem with which I wasted a good couple of hours getting more and more frustrated with numbers 3.0
    I had the same problem - copy a cell - paste into another cell and it created three vertical cells with the pasted data in the middle
    Definitely a problem between CopyPaste Pro - one of the most useful aps on my Mac for the last many years
    Once I quit CopyPaste Pro - no problem with pasting in Numbers 3.0
    But I use CopyPaste Pro all the time
    Have the folks responded to your query?
    But I use CopyPaste Pro all the time - hope that it can be sorted sooner rather than later

  • Photoshop CS3 Selecting top layer bug

    Hi,
    I think I've just found a bug in Photoshop CS3 for Mac.
    When trying to select the first layer in the layers palette the selection hangs for several seconds before becoming responsive. This only happens when selecting the first layer in the layers pallette.
    I'm using a MBP i5 running Snow Leopard.
    I was able to reproduce this anomaly on a college's machine who is also on a MBP, running Snow Leopard but has a Core 2 Duo chip.
    Brian

    Sorry, I was wrong about 10.0.2.
    Of couse Adobe should fix a bug such as this, especially since it's so prominent and clearly an update created the issue.
    So far you assume that the update is the culprit.
    I can’t reproduce the problem with Photoshop 10.0.1 on OSX 10.6.4 so it may yet be specific to the stations you have tried it on.
    Adobe will hardly spend resources on an obsolete piece of software – so you should either go through the usual trouble-shooting-routines (including System maintenance and fonts validation) to see if you can amend the issue yourself or get used to it – or hope someone else can help you in some way.
    But if you expect an upgrade for CS3 you will probably get disappointed.

  • Live paint vs. just selecting shapes and filling them

    I traced an image in cs5 and am not quite sure what the benefit of using live paint to fill shapes with color with the live paint bucket over selecting the shapes and filling them the traditional way. Besides being able to fill shapes with gaps, what is the benefit of live paint?

    function(){return A.apply(null,[this].concat($A(arguments)))}
    not quite sure what the benefit of using live paint
    The benefit of a "flood fill" tool in a vector program is that it can be used to create filled paths corresponding to shapes which only appear to be defined, but are not actually otherwise fillable paths.
    For example: Get the Line Tool. Draw four paths in the form of a tic-tac-toe diagram. Now suppose you want to fill that middle "square" with a color.
    But there is no actual square to which you can apply a fill. There exists only four open paths. The "square" is just the visual bounds of the intersections of the four open paths. A flood fill tool creates the necessary path and applies a fill to it.
    Illustrator's specific flood-fill tool is the so-called Live Paint feature. It's called "live" because it is implemented as a "live effect." That is, the paths it creates automatically are not "nailed down" until the effect is "expanded." That is, the effect gets automatically re-run and re-drawn each time you modify the path(s) to which it is applied. That's why the program has to mark the set of associated paths as a special kind of object that exists just for the benefit of the feature: A "Live Paint Group."
    JET

  • Action written in CS4 won't run correctly in Elements 11 - specif. the "selective color" layer

    I created an action using Adobe Photoshop CS4, and it runs correctly in CS4.  When I save and load the action into Elements 11,  there is a problem with the selective color layer.  The selective color layer shows up in the layer stack along with the expected message that it can't be edited b/c it was created in the full version of Photoshop. However, the layer itself does not have any color/changes in it.
    In Photoshop, the selective color layer makes the photo look pink.  When I run the action in Elements11,the selective color layer does absolutely nothing to the photo.  I do have the eye turned "on" to view the layer, and it's set at the correct blending options & opacity (normal, 100%). 
    If I run the action in Photoshop, save the file with all the action-created layers, and reopen the file in Elements 11, THEN the selective color layer shows its correct pink color.  But when I run the action as a stand-alone action in Elements11, it does not.
    Can anyone offer help as to why this is happening? Is there something special I need to do to make the action work correctly in Elements 11? My understanding was that it should RUN and create the layers correctly, although some of them will not be editable in Elements11. However, as it stands, it is not creating them with the correct color.
    Thanks in advance for your help!

    You probaly need to record the action in a little different way in photoshop cs4 to get the selective color adjustment layer to work.
    Try something like this:
    1. In photoshop cs4 add an selective color adjustment layer, but don't do any adjustments and stop recording the action.
    2. Undo the selective color adjustment layer and then double click on on the selective color adjustment layer step in the actions panel
       and when the dialog opens set your adjustments and click ok.
    Now it should work in pse 11:

  • 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.

  • Photo Filter adjustment layer and eye dropper

    Hi all
    I am sure there is a simple solution to this but here goes (BTW I am using a Windows 7 machine and a variety of versions of PS).
    Somebody showed me an interesting way to address color cast in photos and he showed my using CS2. I tried it at home on Photoshop CC, CS6 and CS5.5 with no joy. I then tried it on CS2 (at home - so the same machine with the other versions on) and it worked as I was shown.
    The method is this.
    Load the image that has a color cast.
    Select Adjustment layer and add a Photo Adjustment layer
    Select "Color" rather than one of the pre-defined filters and click on the Color Box to activate the eye dropper.
    Using the eye dropper select a part of the picture that is closest to the cast that you want to remove
    Then in the "a" and "b" boxes in the dialogue box make the numbers the opposite of what they are (For example if the number is 32 change it to -32, if the number is -32 change it to 32).
    Then click on OK to change the color.
    Then you should be able to use the density slider to increase or decrease the colour cast.
    Now all of that works fine if I am using CS2 - but if I try it in CC, CS6 or CS5.5 when I try to use the eye dropper I cant select any colors in my picture. No matter what I click on I get White, it will not pick up the color.
    I am sure I am doing something wrong, but I cant for the life of me think what!
    Any ideas?
    Cheers
    John

    Rkelly - Thanks for that - it worked.
    Not wishing to sound un-gracious. But how come I dont need to use Ctrl if I apply the effect via the "image/adjustment/photofilter" route but do need Ctrl if I try to apply the same thing via an adjustment layer?
    It isnt a huge problem now that you have supplied me with the solution.... I just want to understand as much as I can.
    Cheers
    John

  • Photoshop CS 5.5, select an object and hit delete to delete and it pops up the Fill window?

    So, new to CS 5.5 but I'm in Photoshop right now and I opened up a PDF in Photoshop and I'm deleting the background. So I grab the Polygonal Lasso tool and select my area to delete. Then I hit the Delete key on the keyboard and it pops up the Fill window... every time asking what I want to "fill" with. Is that because I'm on a locked layer and there is nothing below it? Never worked like that in CS3. Any thoughts?
    CS 5.5 on OSX

    So... what you are saying is that this annoyance is a "feature" to bring the Content Aware feature to light? Also, not in that article you linked to, is the fact that (just tried it) this only happens on a locked background layer. If I create a new document and then duplicate the initial locked layer, delete the locked layer (so I still have only one, unlocked layer) and select and delete, this "feature" doesn't happen.

  • I have photoshopp cc, and I am used to photoshop elements. In photoshop it wont allow me to just click on a layer, and have it select that layer . I have to click on the layer in the box that shows all my layers in order to select it. I also want it to no

    I have photoshop cc, and I am used to photoshop elements. In photoshop it wont allow me to just click on a layer, and have it select that layer . I have to click on the layer in the box that shows all my layers in order to select it. I also want it to not only select the layer on the actual project, but put a hashed line around it that allows me to resize it manually, without having to do it in another window. Does that make sense? I cant even get the layer to select. PLEAE HELP. Id also be able to just click on the layer and drag it. It wont let me, and I am confused.

    If you were serious to learn Photoshop, I'd advise you to take Photoshop classes at your nearest community college or some such institution, to take a subscription to lynda.com, to watch all the Photoshop videos at Adobe TV, to google for specific video tutorials on You Tube and for other tutorials in text format.
    Even the Help menu in Photoshop can be a great starting place.
    Don't expect to find in Photoshop the kind of hand-holding features that Elements has and that appeal to beginners and amateurs.

  • How to fill a selection in Layer A with Layer B

    Hi,
    I've been using Photoshop on a hobby basis for 8 years and I have never figured out to accomplish what seems like this insanely simple task. How do I fill a selection in layer A with the contents of layer B?
    To illustrate, right now I am trying to take a visor on a helmet and give it a broken glass effect. The image of the broken glass is suitable to be placed directly into the visor area of the helmet. I select the visor of the helmet with quick selection tool, and all I really need to do is use this selection to "cut out" an area of the same size and shape from my broken glass image and place it on top. However, I have no idea how to do this.
    What would be the best practice in this situation?
    Thanks,
    bodazx

    One way to do this is to use the place command under the file menu to insert your broken glass image into your helmet image.  Then you can  position and size the broken glass image where you want it.  Aftet than you can make your selection and use it to create a layer mask for the broken glass image.

  • How do I select a black and white sketch from a white background and keep the filled in area of the sketch?  I want to copy it to a colored background. I amusing elements 12.

    How do I select a black and white sketch from a white background and keep the filled in area of the sketch?  I want to copy it to a colored background. I am using elements 12.

    oesrowstreasurer
    Please clarify your "Elements 12". Is that as in Photoshop Elements 12 (photo editor) or Premiere Elements 12 (video editor). And, on what computer operating system is the program running?
    Your question is pointing to Photoshop Elements 12 and that you have posted in the wrong forum. If this is a Photoshop Elements 12 question as I believe it is, please post your thread in the Adobe Premiere Elements Forum using the following link provided for your convenience
    https://forums.adobe.com/community/photoshop_elements
    The alternative is to wait for a moderator to see your thread here and move it from here to the Adobe Photoshop Elements Forum..
    We will be watching for a confirmation on what program you are using.
    ATR

  • When I select a single object in a layer and try to move it with the mouse, everything goes with...

    I've been having this problem where I can't use the move tool with the mouse properly. I'll go and select a single item on a layer and then try to move it with the mouse (move tool). I've done this before and still do it all the time on Photoshop on my other machines. However, on my laptop it won't work. I grab the single object I want to move and the second I move it, it defaults to moving every single layer in my file. The only way to get around it is to use the arrows, but that's becoming laborious and frustrating.
    Any ideas?

    I know what you mean! This happened to me as well!
    And one thing that I found useful is, if you want to directly select a layer without selecting from the layers pallete and without having autoselect enabled, just hold Ctrl and click on in directly in the image. This saved me a lot of time!

  • Photoshop CS6 [ Command + Click ] Layer Selection "Problem" Solved

    Good afternoon fellas,
    I've recently noticed something uncommon when working with Photoshop CS6 under Mac OS X 10.8.x.
    When I naturally tried to select a Layer by the [ Command + Click ] (let's say) shortcut, it failed. This little thing was driving me nuts, and I know it must be getting some people hairless, too.
    Anyway(s), by looking another read-only thread, I noticed the problem has not been solved and some pretty lame recommendations were given. By try, I finally found the solution and was able to fix this little annoyance that maybe we've all been through. So here it goes the workaround, so maybe you'll never consider downgrading to 5.5 again like I was considering:
    1) In Photoshop, make sure the Move Tool is selected by pressing "V";
    2) In the tool's submenu, forget about selecting/marking "Auto-Select". I know it sounds nonsense, trust me;
    3) Although, make sure "Layer" is selected right next to the "Auto-Select" button, and you should be done as I am.
    Hope this can help a few people! I would be very happy to know, since I just created this account to help you guys out.
    I don't know if this issue has been solved and posted already, I'm sorry. I just want to make sure we'll be all happy!
    Cheers,
    "Let it go, Jack."

    Did you actually took a look into Photoshop CS 6 before posting?
    Been using Photoshop since legacy 6.0.
    This was one feature that started off without being able to enable/ disable 'auto-select' sometime in 2003-2004 releases which was later appended to newer versions of Photoshop.
    I see your screenshot and I'm aware there is a 'tick' mark that appears next to Layer or Group when you choose either of them.
    But, without enabling 'auto-select', the selection you make in that dropdown will not have any effect.
    Try it for yourself.
    Create a new document
    Create any layer (rectangle, ellipse, whatever)
    Once created, deselect all layers (layers panel should not highlight any layer)
    Disable auto select. Choose 'Layer' from dropdown. Single click on the layer you just created. See what Photoshop says
    Now enable auto select. Choose 'Layer' from dropdown. SIngle click on the layer you just created. See what happens in Photoshop (Layers Panel)
    Cause I really wouldn't waste my time posting something wrong.
    I didn't say you posted something wrong. Neither would I be 'wasting' my time in responding to a post that I feel is incorrect. End of the day, this is a community and we're here to help each other and at no time should other fellow members be deceived by incorrect information.
    -ST

  • After duplicating LAYER, I go to EDIT    FILL LAYER and can't find NORMAL mode  Elements 9

    after duplicating LAYER, I go to EDIT    FILL LAYER and can't find NORMAL mode

    I go to the menu and NORMAL does not appear
    Date: Mon, 14 Jan 2013 10:28:01 -0700
    From: [email protected]
    To: [email protected]
    Subject: after duplicating LAYER, I go to EDIT    FILL LAYER and can't find NORMAL mode  Elements 9
        Re: after duplicating LAYER, I go to EDIT    FILL LAYER and can't find NORMAL mode  Elements 9
        created by 99jon in Photoshop Elements - View the full discussion
      Try from the layers pallet after highlighting your background copy layer. You should have dropdown menus for blend modes and opacity.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4992506#4992506
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4992506#4992506
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4992506#4992506. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Elements by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

Maybe you are looking for

  • Access to a logged-in user's information via a session based object

    I am in the process of putting together a design for the security layer of a given application I am working on. The requirements for authentication demand that the framework take advantage of digital certificates and username/password verification. T

  • Can't open files from iCloud drive

    Just upgaded to 8 and transferred a few files to iCloud Drive on my PC. But when I access drive from my iPad, it lists everything as "encrypted". Any thoughts ?

  • Iweb wont publish

    I am trying to edit my web site (donmazer.com) but when I press publish I get a message that my start up disk is getting full. It says to delete something. What? Can anyone help?

  • Crash issues/pl

    Hey there, Just got a 2011 brand new 27 incgh imac with full ram/ full processing speed. I am using after effects and premiere to edit a project. I am currently experiencing over the top crash issues/ slow rendering/ general reas issues when I attemp

  • Rectangle Tool not working properly.

    I am having the issue when I am attempting to create a Rectangle. Please keep in mind that this is not a Rounded Rectangle. As I drag it out to make the object bigger, the corners automatically start rounding. I am using Windows 8 if that has anythin