Copy link to clipboard
Copied
Hi there,
I am using PhotoShop 2023 on Apple Mac. Both latest version.
I sometimes take screenshots of the steps I am doing and save them in powerpoint,
so I can follow these steps next time.
I resize the window to a smaller size, to focus my screenshot.
For couple month ago I was using apple script to move and resize the photoshop window.
With this code I can move and resize the Text editor window on Mac. This still works.
tell application "TextEdit"
activate
set the bounds of the first window to {0, 0, 800, 600}
end tell
However adapted code for Adobe Photoshop
tell application "Adobe Photoshop 2023"
activate
set the bounds of the first window to {0, 0, 800, 600}
end tell
does not work anymore.
My Goal:
When I run Photshop, it opens full screen.
When I run a script such apple script or run another workflow, etc.
I want to move photoshop window on a exact position such (0,0) and resize such (800,600)
What I do not want is: each time manually resize via mouse (drag & move).
- I need a quick & exact move & resize.
How can I do this - is there a built-in function within photoshop ?
Thanks,
Aykut
Copy link to clipboard
Copied
AppleScript is platform-dependent and therefore unpopular for Photoshop-Scripting.
I would recommend using JavaScript instead (though I have not needed to automate setting the window bounds yet and therefore am not sure if it is possible in JavaScript) and starting a new thread with the topic »Actions and scripting«.
Copy link to clipboard
Copied
Sorry, I have to correct myself; I think I did look into Scripting window positions a while back (in the context of storing and restoring sessions) and did not get far with JavaScript.
The scale and the position of the image in the window worked out but the window-position and -size not so much.
So a shell-Script may be unavoidable but hopefully someone else has more insight to offer.