Re: Text Layers in Photoshop CS5
Re: Text Layers in Photoshop CS5
- Subject: Re: Text Layers in Photoshop CS5
- From: "Fleisher, Ken" <email@hidden>
- Date: Wed, 23 Mar 2011 17:29:12 -0400
- Thread-topic: Text Layers in Photoshop CS5
Title: Re: Text Layers in Photoshop CS5
Thanks for all the replies. I guess I was on the right track originally, but got the syntax a little bit wrong. Your suggestions helped get me there. Additionally, there are two hang ups that I can’t seem to get around. I cannot set properties of the text object at the same time as creating the layer because it seems there is no text object yet to assign properties to. Also, I cannot set the contents of contents of the text layer in the same properties assignment because (well, I don’t know why, but the text doesn’t come out right).
I have come up with this so far which already has dramatically increased the speed. Many thanks to all for the suggestions.
Ken
tell application "Adobe Photoshop CS5"
set ruler units of settings to pixel units
tell current document
set h to height
set textlayer to make new art layer with properties {kind:text layer, name:"Text Layer"}
set textobj to text object of textlayer
set properties of textobj to {position:{10, h - 10}, justification:left, size:24, ¬
stroke color:{class:Lab color, value_L:55, value_a:20, value_b:0}, font:"Helvetica"}
set contents of contents of textobj to "This is text"
end tell
end tell
_______________________________________________
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