tell application "Adobe Photoshop CC 2015.5" -- replace with the version of Photoshop you have
activate
set theDimensions to bounds of current layer of document 1
set theWidth to item 3 of theDimensions
set theHeight to item 4 of theDimensions
set theDimensions to theWidth & theHeight
end tell
私はPhotoshopドキュメントの測定単位としてインチを使用していますので、このスクリプトは値を結果のインチ単位で返します。私は高さのバージョンが唯一の
あるだけでここ
それらをコメントアウト、あなたはピクセルまたは他のを使用する場合は、このスクリプトで幅の値を必要としない場合は...このスクリプトは、適切な値
を返しますと仮定します
tell application "Adobe Photoshop CC 2015.5" -- replace with the version of Photoshop you have
activate
set theDimensions to bounds of current layer of document 1
--set theWidth to item 3 of theDimensions
set theHeight to item 4 of theDimensions
--set theDimensions to theWidth & theHeight
end tell