Question
AppleScript using pixels for scaling layer
Ive been using AppleScript to automate a template file but I need to resize a pasted image layer. I went through the guid and couldnt find anything. Is there any way to resize/scale a layer with pixels rather than percentages? Pasted current code snippets below
tell application "Adobe Photoshop 2021"
set ruler units of settings to pixel units
set type units of settings to pixel units
set AlbumArt to layer "Layer 5" of layer set "Title" of current document
set name of AlbumArt to "Album Artwork"
move AlbumArt to layer set "Album Art" of current document
set AlbumArt to layer "Album Artwork" of layer set "Album Art" of current document
set AlbumArt to current layer of current document
set scaleSet to {horizontal scale: 500 , vertical scale: 500}
scale of current layer of current document with scaleSet
end tell
