How to execute jsx ps script in photoshop from bridge ?

General Discussion of Scripting for Adobe Bridge

Moderators: Tom, Kukurykus

Mr_White

How to execute jsx ps script in photoshop from bridge ?

Post by Mr_White »

Hi all.

I have a script that launches Photoshop bridge.
Once you open Photoshop I need him to run a script to manipulate images, Photoshop is a JSX script.
How to Bridge to execute a script in Photoshop?

* Sry for my bad english

Mr White
Mr_White

How to execute jsx ps script in photoshop from bridge ?

Post by Mr_White »

I have the solution, sory for the inconvenience

Closed.

Mr White
tms

How to execute jsx ps script in photoshop from bridge ?

Post by tms »

Hi Mr White,

I have nearly the same question/problem with a script that I want to run/start from bridge, would you mind to share your solution?

thanks,
sebastian.
Paul MR

How to execute jsx ps script in photoshop from bridge ?

Post by Paul MR »

Here is one way of doing it ...

Code: Select allvar bt = new BridgeTalk();
bt.target = "photoshop";
bt.body = "var runScript = " + runMyScript.toSource() + "; runScript();";
bt.send();

function runMyScript(){
var SCRIPTS_FOLDER =  decodeURI(app.path + '/' + localize("$$$/ScriptingSupport/InstalledScripts=Presets/Scripts"));
var myScript = new File(SCRIPTS_FOLDER + "/Picture Processor.jsx");
$.evalFile (myScript);
};
Stitches

How to execute jsx ps script in photoshop from bridge ?

Post by Stitches »

Just so that I understand:

If I had one big script that contains both what I want bridge to do and what I want photoshop to do, can I pass the code to photoshop via a message? The only way I've seen to tell photoshop to execute a script is to either have the script be one line, i.e. "alert('I'm photoshop");" or to use this method and tell photoshop to look in a folder on the hard drive to find the script to execute. I haven't found a way to put both the bridge instructions and the photoshop instructions into one package. Being able to do this looks like it would solve my installation issues and cross-platform issues "the easy way."

Thanks!
ishadatta
Posts: 1
Joined: Sat Sep 28, 2019 8:49 am

Re: How to execute jsx ps script in photoshop from bridge ?

Post by ishadatta »

Great Information.Thank You :)
Sushantingle
Posts: 1
Joined: Fri Jun 26, 2020 11:31 am

Re: How to execute jsx ps script in photoshop from bridge ?

Post by Sushantingle »

Informative share!
Shivamraut
Posts: 1
Joined: Tue Jun 30, 2020 6:32 am

Re: How to execute jsx ps script in photoshop from bridge ?

Post by Shivamraut »

Great share!