Page 1 of 1

How to execute jsx ps script in photoshop from bridge ?

Posted: Tue Aug 23, 2011 1:02 pm
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

How to execute jsx ps script in photoshop from bridge ?

Posted: Tue Aug 23, 2011 2:39 pm
by Mr_White
I have the solution, sory for the inconvenience

Closed.

Mr White

How to execute jsx ps script in photoshop from bridge ?

Posted: Wed Nov 07, 2012 2:54 pm
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.

How to execute jsx ps script in photoshop from bridge ?

Posted: Wed Nov 07, 2012 5:38 pm
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);
};

How to execute jsx ps script in photoshop from bridge ?

Posted: Thu May 30, 2013 5:45 am
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!

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

Posted: Sat Sep 28, 2019 8:51 am
by ishadatta
Great Information.Thank You :)