Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Photoshop Help



On 6/29/06 3:29 PM, Monte Babington wrote:

> How do I do the equivalent of command-clicking on a layer (set current
> selection to the contents of the layer I clicked)?


On 6/29/06 4:04 PM, Shane Stanley wrote:

> If you have only one layer visible, "select all" will select just that
> layer.


"Select all" also works with the currently selected layer, which you can
control, as shown in the snippet below. Note that referencing either "layer"
or "art layer" by name or index will work.

tell application "Adobe Photoshop CS2"
    tell document 1
        set current layer to layer "Background"
        -- or 
        set current layer to art layer "Layer 2"
        -- or
        set current layer to layer 3
        select all
    end tell
end tell

Stan Cleveland
Color Technology Inc.
Portland, Oregon

"When I was a kid I had no idea I lived in a mansion. Then I went to a
friend's house, and I was like, 'Oh.'" -- Paris Hilton


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden

References: 
 >Photoshop Help (From: Monte Babington <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.