Copy link to clipboard
Copied
I'm trying to write an applescript to automate my frequency separation setup. How do I get applescript to run the Image>Apply Image menu item, and then enter the correct parameters?
Actions are easier and still capable.
I don't code in AppleScript, however, I do know that just like the ExtendScript DOM, where there are missing features you need to use ActionManager code such as recorded by ScriptingListener and call that code from within AppleScript.
...
I called an action that I'd created in PS 🙂
Copy link to clipboard
Copied
Actions are easier and still capable.
I don't code in AppleScript, however, I do know that just like the ExtendScript DOM, where there are missing features you need to use ActionManager code such as recorded by ScriptingListener and call that code from within AppleScript.
Copy link to clipboard
Copied
So, how did you go running the ExtendScript Action Manager code from within the AppleScript?
Copy link to clipboard
Copied
I called an action that I'd created in PS 🙂
Copy link to clipboard
Copied
@andymalhan – Thank you for remembering to come back and update the topic.
Copy link to clipboard
Copied
To be honest, I forgot. Sorry for the delay. And thank you for the help!!
Copy link to clipboard
Copied
In case anyone is interested, this is the script I use:
tell application "Adobe Photoshop 2025"
activate
set originalLayer to current layer of document 1
set colourLayer to duplicate originalLayer with copying
set name of colourLayer to "colour"
set textureLayer to duplicate originalLayer with copying
set name of textureLayer to "texture"
set visible of textureLayer to false
set current layer of current document to layer ¬
"colour" of current document
filter current layer of current document using gaussian blur ¬
with options {radius:2.7}
set visible of textureLayer to true
set current layer of current document to layer ¬
"texture" of current document
do action "AppImg_fs" from "Default Actions"
end tell
AppImg_fs is my Photoshop action that applies the values I want in apply image dialogue box.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more