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

From the Ps action palette in button mode - I want to run a javascript.

Participant ,
Sep 08, 2021 Sep 08, 2021

From the Ps action palette in button mode - I simply want the action to run a javascript file. I have a javascripts that load and unload actions sets to keep from having too many distracting buttons and having to scroll in the action palette.

 

I currently can drag and drop javascript files into Ps, and Ps load and unloads the Actions Sets nicely to reduce the clutter.

BUT, I want to get rid dragging and dropping js files into photoshop. It breaks the the rythme of workflow. I should be able to work WITHIN photoshop. Photoshop doesn't allow me to load / unload sets [programmatically with a Ps Action ]

 

I want like this;

Action pallette (button mode);

   action1

   action2

   action3

NEXT TASK...

 

where NEXT TASK is an action that somehow executes a javascript file.

 

 

TIA for any help.

TOPICS
Actions and scripting , macOS , Windows
4.5K
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

LEGEND , Sep 08, 2021 Sep 08, 2021

Save your .jsx to 'Presets / Scripts' folder of your Photoshop which you have to relaunch. When you have action (in action set) selected, Insert Menu Item from top right corner expandable menu. Then click on the appropriate item in the 'File / Scripts' menu.

Translate
LEGEND , Sep 11, 2021 Sep 11, 2021

 

cntnt='load(File(path+"/Presets/Actions/gL Print Preflight.atn"))';
(bt = new BridgeTalk()).target='photoshop', bt.body=cntnt, bt.send()

 

Translate
Adobe
LEGEND ,
Sep 12, 2021 Sep 12, 2021

ES is inbuilt while ToolKit is an editor. Doesn't simpler code from Sep 11, 2021 work on Mac?

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
Participant ,
Sep 12, 2021 Sep 12, 2021

Sept 11 code works on Mac, but I had already installed ES before this project. So I don't know if the code works with native install of photoshop or because I had installed ES.

 

So, this is my question;

Is BridgeTalk a part native photoshop installation on Mac:windows ?

 

or is BridgeTalk a part of Extendscript ?


I'm so happy this works 😀

 

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
LEGEND ,
Sep 12, 2021 Sep 12, 2021
LATEST

You couldn't install ExtendScript to Photoshop over that there's already in. As I explained it's part of Ps, so if the other approach I proposed works, it's better to use that as simpler solution.

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
LEGEND ,
Sep 11, 2021 Sep 11, 2021
actionFile.execute()
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