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 ?
How to execute jsx ps script in photoshop from bridge ?
I have the solution, sory for the inconvenience
Closed.
Mr White
Closed.
Mr White
How to execute jsx ps script in photoshop from bridge ?
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.
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 ?
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);
};
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 ?
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!
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 ?
Great Information.Thank You ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
-
- Posts: 1
- Joined: Fri Jun 26, 2020 11:31 am
Re: How to execute jsx ps script in photoshop from bridge ?
Informative share!
-
- Posts: 1
- Joined: Tue Jun 30, 2020 6:32 am