How to execute jsx ps script in photoshop from bridge ?

General Discussion of Scripting for Adobe Bridge

Moderators: xbytor, DavideBarranca, Paul MR

Mr_White

How to execute jsx ps script in photoshop from bridge ?

Postby Mr_White » Tue Aug 23, 2011 1:02 pm

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 ?

Postby Mr_White » Tue Aug 23, 2011 2:39 pm

I have the solution, sory for the inconvenience

Closed.

Mr White

tms

How to execute jsx ps script in photoshop from bridge ?

Postby tms » Wed Nov 07, 2012 2:54 pm

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 ?

Postby Paul MR » Wed Nov 07, 2012 5:38 pm

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 ?

Postby Stitches » Thu May 30, 2013 5:45 am

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!


Return to “Adobe Bridge Scripting: General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest