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

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -