Adobe 23101764 Scripting Guide - Page 65
Changing ruler and type units
UPC - 718659340025
View all Adobe 23101764 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 65 highlights
Scripting Photoshop 3 Working with units * Unit values based on type ruler setting TABLE 3.3 Command Parameters AppleScript Visual Basic JavaScript crop (bounds, height, width) Document.Crop (Bounds, Height, Width) document.crop (bounds, height, width) resize canvas (height, width) Document.ResizeCanvas (Height, Width) document.resizeCanvas (height, width) resize image (height, width) Document.ResizeImage (Height, Width) document.resizeImage (height, width) contract (by) Selection.Contract (By) selection.contract (by) expand (by) Selection.Expand (By) selection.expand (by) feather (by) Selection.Feather (By) selection.feather (by) select border (width) Selection.SelectBorder (Width) selection.selectBorder (width) translate (delta x, delta y) Selection.Translate (DeltaX, DeltaY) selection.translate (deltaX, deltaY) translate boundary (delta x, delta y) Selection.TranslateBoundary selection.translateBoundary (DeltaX, DeltaY) (deltaX, deltaY) 3.6.3 Changing ruler and type units The unit type settings of the two Photoshop rulers control how numbers are interpreted when dealing with properties and parameters that support unit values. Be sure to set the ruler units as needed at the beginning of your scripts and save and restore the original ruler settings when your script has completed. In AppleScript ruler units and type units are properties of the settings-object, accessed through the Application object's settings property as shown below. set ruler units of settings to inch units set type units of settings to pixel units set point size of settings to postscript size Photoshop CS Scripting Guide 61