• 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: scripting photoshop save layers as files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scripting photoshop save layers as files


  • Subject: Re: scripting photoshop save layers as files
  • From: Jesse Shanks <email@hidden>
  • Date: Mon, 03 Mar 2003 15:13:02 -0800

In the case of the script I had which looped through the layers of a
photoshop document and saved each layer as a PNG, I was having trouble
getting the new files to be the smallest size by being unable to get the
size of the selection.

I was working on a stop gap and realized that making an action that cropped,
did the trick. So now I tell Photoshop to do that action before saving the
PNG. Doh!

The script gets a layer. An action command-clicks the layer to set the
selection. Copy. New document with properties fill:transparent. Paste. Do
action to crop (the selection is maintained in each after the paste.) Then
saving.

I have an Action Set for script actions. This is kind of nice because then
actions serve as little script objects that can be called from a script
whether it is a standalone or just a quick super macro to be run from Script
Editor for a one time purpose.


--
Jesse Shanks
Writer & Web Developer
http://www.blankreb.com
email@hidden
530.886.0815
-
http://www.catsprite.com
http://www.digitallyobsessed.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: myLoop: getting subject of messages in Mail.app
  • Next by Date: Re: myLoop: getting subject of messages in Mail.app
  • Previous by thread: Re: Shutdown Items Folder?
  • Next by thread: Eudora and "Macintosh information"
  • Index(es):
    • Date
    • Thread