• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Photoshop layer mask scripting - stumped
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Photoshop layer mask scripting - stumped


  • Subject: Re: Photoshop layer mask scripting - stumped
  • From: Martin Orpen <email@hidden>
  • Date: Tue, 14 Sep 2004 21:35:27 +0100

Title: Re: Photoshop layer mask scripting - stumped
on 14/9/04 5:30 pm, Roger Howard at email@hidden wrote:

>
> On Sep 13, 2004, at 10:37 PM, Shane Stanley wrote:
>
>> On Mon, 13 Sep 2004 17:12:22 -0700, Roger Howard wrote:
>>
>>> Today, my goal is relatively straightforward
>>
>> To you, perhaps. This Photoshop stuff hurts my head; and to think that
>> PS
>> heads think scripting is arcane...
>
> I don't think scripting in general is arcane, but in this instance it
> sure is...
>
>>> First, how do I get a layer mask of a layer?
>>
>> I don't think you can.
>
> Ouch. Ok, then I can use a one-step action to load the layer mask of
> the current layer into a selection... which I believe I can use.


Don't let Shane put you off with all that _javascript_ talk ;-)

Discover the joys of the UI. You can get the contents of a layer mask like this:

tell application "Adobe Photoshop 7.0"
    
activate
   set current layer of current document to layer 2 of current document
   select all current document
end
tell
tell
application "System Events"
    
tell process "Adobe Photoshop 7.0"
        
launch
       keystroke "\\" using {command down}
        
delay 1
       keystroke "v" using {shift down}
        
delay 1
       keystroke "c" using {command down}
    
end tell
end
tell


That should get you started...

Regards

--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Photoshop layer mask scripting - stumped
      • From: "Shane Stanley" <email@hidden>
    • Re: Photoshop layer mask scripting - stumped
      • From: Roger Howard <email@hidden>
References: 
 >Re: Photoshop layer mask scripting - stumped (From: Roger Howard <email@hidden>)

  • Prev by Date: Re: world's largest AppleScript dictionary (was Re: Digital Sigs)
  • Next by Date: Applications running..
  • Previous by thread: Re: Photoshop layer mask scripting - stumped
  • Next by thread: Re: Photoshop layer mask scripting - stumped
  • Index(es):
    • Date
    • Thread