Skip to main content
andymalhan
Inspiring
March 8, 2024
Answered

Using AppleScript to 'apply image'

  • March 8, 2024
  • 2 replies
  • 518 views

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?

 

 

Correct answer andymalhan

I called an action that I'd created in PS 🙂

2 replies

Stephen Marsh
Community Expert
Community Expert
March 14, 2024

@andymalhan 

 

So, how did you go running the ExtendScript Action Manager code from within the AppleScript?

andymalhan
andymalhanAuthorCorrect answer
Inspiring
January 27, 2025

I called an action that I'd created in PS 🙂

andymalhan
Inspiring
January 28, 2025

@andymalhan – Thank you for remembering to come back and update the topic.


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. 

 

Stephen Marsh
Community Expert
Community Expert
March 8, 2024