Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
4

Using AppleScript to 'apply image'

Explorer ,
Mar 08, 2024 Mar 08, 2024

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?

 

 

TOPICS
Actions and scripting , macOS
569
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Mar 08, 2024 Mar 08, 2024

Actions are easier and still capable.

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/updated-frequency-separation-action-for-ps-2024/td-p/14474525


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.

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/request-add-scale-styles-option-to-quot-resize-image-quot-command-in-applescript/td-p/10636852

...
Translate
Explorer , Jan 27, 2025 Jan 27, 2025

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

Translate
Adobe
Community Expert ,
Mar 08, 2024 Mar 08, 2024

Actions are easier and still capable.

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/updated-frequency-separation-action-f...


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.

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/request-add-scale-styles-option-to-qu...

 

https://community.adobe.com/t5/photoshop-ecosystem-discussions/how-to-select-the-mask-of-a-layer-thr...

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 14, 2024 Mar 14, 2024

@andymalhan 

 

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 27, 2025 Jan 27, 2025

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 27, 2025 Jan 27, 2025

@andymalhan â€“ Thank you for remembering to come back and update the topic.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 28, 2025 Jan 28, 2025

To be honest, I forgot. Sorry for the delay. And thank you for the help!!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 28, 2025 Jan 28, 2025
LATEST

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. 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines