Get Height of layer or selection in Photoshop with AppleScript -
i having lot of trouble trying height of layer or selection of layer in photoshop using applescript. end goal height of lets layer , height of layer b , find difference. part of bigger script nothing or search seems yield answers.
thanks in advance!
tell application "adobe photoshop cc 2015.5" -- replace version of photoshop have activate set thedimensions bounds of current layer of document 1 set thewidth item 3 of thedimensions set theheight item 4 of thedimensions set thedimensions thewidth & theheight end tell
i use inches unit of measurement in photoshop documents script returns values inches in results. assume if use pixels or other… script return appropriate values
if not need width values in script, comment them out
here version height only
tell application "adobe photoshop cc 2015.5" -- replace version of photoshop have activate set thedimensions bounds of current layer of document 1 --set thewidth item 3 of thedimensions set theheight item 4 of thedimensions --set thedimensions thewidth & theheight end tell
Comments
Post a Comment