• 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: Text Layers in Photoshop CS5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text Layers in Photoshop CS5


  • Subject: Re: Text Layers in Photoshop CS5
  • From: Stan Cleveland <email@hidden>
  • Date: Wed, 23 Mar 2011 13:46:47 -0700

On Mar 23, 2011, at 1:22 PM, Fleisher, Ken wrote:

I have an applescript that creates text layers in Photoshop CS5. The script works, but when creating text layers, it becomes very slow. Every property is set on an individual line. I have not found a way to set all properties and create the text layer in a single action, or even to just set multiple properties in a single command. Is this possible, or do I need to do it as in my example code below? Thanks in advance for any advice you can provide.

Ken

set filelayerref to make new art layer at captionGroup with properties {kind:text layer, name:"Filename_caption"}
set
filenameref to text object of filelayerref
set justification of filenameref to left
set contents of contents of filenameref to captionname of pashuaResult
set size of filenameref to 10
set
stroke color of filenameref to thetextcolor
set font of filenameref to "Helvetica"
set
position of contents of filenameref to {10, (h - 50)}
set
thedimensions to get (bounds of filelayerref) as list
set fileNameW to (item 3 of thedimensions) - (item 1 of thedimensions)

Hi Ken,

You're right. Any time you can combine operations, it's a good thing.

Without actually testing it, though based on past experience, I would guess that the following (or something close to it) will work to replace the first eight lines of your code:

set filelayerref to make new art layer at captionGroup with properties ¬
{kind:text layer, name:"Filename_caption", text object:{justification:left ¬
, size:10, stroke color:thetextcolor, font:"Helvetica", contents:¬
{contents:captionname of pashuaResult, position:{10, (h - 50)}}}}

With fingers crossed,
Stan C.

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Text Layers in Photoshop CS5
      • From: "Fleisher, Ken" <email@hidden>
References: 
 >Text Layers in Photoshop CS5 (From: "Fleisher, Ken" <email@hidden>)

  • Prev by Date: Re: Text Layers in Photoshop CS5
  • Next by Date: Re: Text Layers in Photoshop CS5
  • Previous by thread: Re: Text Layers in Photoshop CS5
  • Next by thread: Re: Text Layers in Photoshop CS5
  • Index(es):
    • Date
    • Thread