Hello.
So i got the hang of applescripting in keynote, mainly due to all the great post around the internet explaining it in detail.
Now want to do some scripting in photoshop, but i can’t really find anything good to go with.
I downloaded the Photoshop scripting manual, but it didn’t help me as of now, cause i’m stuck with the very first line of code.
tell application "Adobe Photoshop CC 2018"
activate
make new document
set myFile to "Data:docsamples:testfiles:TiffSave.tif"
set myOptions to ¬
{class:TIFF save options, embed color profile:true, interleave channels:true, save alpha channels:true, transparency:true, image compression:none, save layers:true, save spot colors:true}
tell current document
resize canvas width 1920 height 1080 anchor position top center
end tell
end tell
I wan’t to make a document, with a given Width X Height from my previous inputs in my applescript.
Right now, the only way do modify the canvas, that i have found, is to resize it. But in this way, i can’t get it to use pixels instead of cm.
The Question
is there a way to lets say, create new document with canvas size X,Y and background color black?
just so you know where it is going.
The script, when done should:
copy all shapes from a keynote document,
create new photoshop document,
paste keynote shapes to new document
export TIFF with black background color to folder A, with name B
export PNG with black background color to folder A, with name B+PNG (no compression)
delete background layer
export TIFF without background as alpha with transparency to folder A with name B+1
export PNG with black background color to folder A, with name B+PNG+1 (no compression +alpha)