Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Text Layers in Photoshop CS5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text Layers in Photoshop CS5




Le 23 mars 2011 à 21:22, Fleisher, Ken a écrit :

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)

I don't own Photoshop but I guess that :

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

may do the trick.

Yvan KOENIG (VALLAURIS, France) mercredi 23 mars 2011 21:33:08


 _______________________________________________
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

References: 
 >Text Layers in Photoshop CS5 (From: "Fleisher, Ken" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.