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



Thanks for the speedy replies, guys.

The trouble is that I need the selection to be in the shape of a layer.
I'll use that selection to delete an area of another layer later in the
script.

I tried using the select all method and then pasting to an alpha channel,
but the position changes.  So my question is:

Does anyone know how to either:

1) Use the current layer to generate a selection shape

2)  Generate an alpha channel from the current layer without changing
position?

I could do the first one with a combination of applescript and photoshop
action, but if there's a way to do it all in applescript, that'd be ideal.

Thanks again,


Monte Babington
Director of Production
--------------------------------------
Vat19 | Jumby Bay Studios
314.569.1771 x30
www.Vat19.com
www.JumbyBayStudios.com

On 6/29/06 8:27 PM, "Stan" <email@hidden> wrote:

> 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/monte%40jumbybaystudi
> os.com
> 
> This email sent to email@hidden



 _______________________________________________
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: 
 >Re: Photoshop Help (From: Stan <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.