58

image Scripting Alpha Channels in Photoshop

Here is an AppleScript that drives Photoshop, creates an alpha channel and saves the file:

tell application “Adobe Photoshop CS2"  set myText to “Example Text"  set myTempFileName ¬   to “/Users/cliff/Desktop/PStest0010.psd" as string  activate  make new document  set myTextLayer to make new art layer ¬   in current document with properties {kind:text layer}  set properties of text object of myTextLayer ¬   to {contents:myText, size:64 as points, position:{100, 100}}  select all current document  copy  set myAlphaChannel to make new channel ¬   in current document with properties {kind:masked area ...

Get Developing Quality Metadata now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.