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

CREATE ADJUSTMENT LAYER WITH APPLESCRIPT

New Here ,
Feb 05, 2020 Feb 05, 2020

Guys, it is so annoying to me, could you please tell me how to create adjustment layer with applescript ?

 

Thank you 🙂

TOPICS
Actions and scripting
354
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
Adobe
Community Expert ,
Feb 05, 2020 Feb 05, 2020

If I remember correctly one can run JavaScript from 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
Community Expert ,
Feb 05, 2020 Feb 05, 2020

Since I don't have a Mac, I'm not sure of this, but will scriptListener record the code? On Win, it records both javascript and VB, so maybe on a Mac it will record Applescript instead of VB.

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 ,
Feb 05, 2020 Feb 05, 2020

https://helpx.adobe.com/photoshop/kb/downloadable-plugins-and-content.html#ScriptingListenerplugin

 

Quote from »Photoshop Scripting Guide.pdf«: 

 

The ScriptListener Plug-In

Before you use the Action Manager, you must install the ScriptListener plug-in. ScriptListener records a file

with scripting code corresponding to the actions you perform in the UI.

TIP: Because ScriptListener records most of your actions, install ScriptListener only when you are creating

Action Manager scripts. Leaving ScriptListener installed continuously will not only create large files that

occupy memory on your hard drive, it can slow Photoshop performance.

When you perform a task or series of tasks in Photoshop, ScriptListener creates several files, which contain

code that represents the actions taken in Photoshop:

ScriptingListenerJS.log, containing JavaScript code,

ScriptingListenerVB.log, containing VBScript code (Windows only).

ScriptListener creates these files on the desktop.

NOTE: There is no AppleScript interface to the Action Manager. However, you can access the Action

Manager from an AppleScript by executing a JavaScript from AppleScript. See “Running JavaScript-based

Action Manager code from AppleScript” on page 80.

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 ,
Feb 05, 2020 Feb 05, 2020

Thanks, always wondered about that.

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 ,
Feb 05, 2020 Feb 05, 2020
LATEST

This does not directly answer what methods are supported in AppleScript (guides here)... however, you may wish to look at the following topic for more info on getting JavaScript and Action Manager/Scripting Listener code working with AppleScript (either as inline code or as an externally referenced file):

 

https://community.adobe.com/t5/photoshop/request-add-scale-styles-option-to-quot-resize-image-quot-c...

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