Adobe 23101764 - Photoshop CS - PC Manual page 65

Scripting guide
Hide thumbs Also See for 23101764 - Photoshop CS - PC:
Table of Contents

Advertisement

* Unit values based on type ruler setting
T
ABLE
AppleScript
crop
(bounds, height, width)
resize canvas
(height, width)
resize image
(height, width)
contract
(by)
expand
(by)
feather
(by)
select border
(width)
translate
(delta x, delta y)
translate boundary
(delta x, delta y)
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
3.3
Command Parameters
Visual Basic
Document.Crop
(Bounds, Height, Width)
Document.ResizeCanvas
(Height, Width)
Document.ResizeImage
(Height, Width)
Selection.Contract
(By)
Selection.Expand
(By)
Selection.Feather
(By)
Selection.SelectBorder
(Width)
Selection.Translate
(DeltaX, DeltaY)
Selection.TranslateBoundary
(DeltaX, DeltaY)
Scripting Photoshop
Working with units
JavaScript
document.crop
(bounds, height, width)
document.resizeCanvas
(height, width)
document.resizeImage
(height, width)
selection.contract
(by)
selection.expand
(by)
selection.feather
(by)
selection.selectBorder
(width)
selection.translate
(deltaX, deltaY)
selection.translateBoundary
(deltaX, deltaY)
3
61

Advertisement

Table of Contents
loading

This manual is also suitable for:

Photoshop cs

Table of Contents