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

How do you run a PSD Action from Bridge?

Engaged ,
Feb 15, 2013 Feb 15, 2013

I have a droplet on my desktop. I was thinking of copying the file to the droplet. I have to inspect the name of each file before the action gets run. If it meets certain critirea. Then I need to run the action on that pic. Or thumbnail. Thanks in advanced for any words of wisdom. Is there a guide for Bridge JS?

TOPICS
Scripting
2.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
Guru ,
Feb 15, 2013 Feb 15, 2013

There are guides for Bridge… But the link looks broken…? Do let me know when its back up and CS6 has been added…

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
Engaged ,
Feb 18, 2013 Feb 18, 2013

Is there an object you can use to run a droplet or action in PSD. From bridge. It can be CS5 that is fine.

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
Guru ,
Feb 20, 2013 Feb 20, 2013

As far as I know there are guides for BR upto CS5 ( I've never seen a CS6 yet? )… The dev center looks to be down… If you need PDF guides then I can probably dig them out for you… As for you work flow I don't really understand what you want to do and why you would want to use a PS droplet…? To run scripts from BR that target other apps to execute syntax then you make use of bridgetalk to do this… Thats covered in the general JavaScript Tools Guide… BR has some Abobe built-in scripts which offer some examples… I think you can batch a PS action from either way around…

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
Engaged ,
Feb 21, 2013 Feb 21, 2013

If you could be so kind I would love a copy of the bridge guide. Can I provide you w/ email address in a message?

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
Guru ,
Feb 21, 2013 Feb 21, 2013

At work at the moment only CS5 here… but I think I have them all on the home mac… Let me know if you need older refs… Some time useful for backward compatibility stuff if you need that… PM me your address…

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
Engaged ,
Feb 22, 2013 Feb 22, 2013

I was wondering if you recieved my message?

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
Guru ,
Feb 22, 2013 Feb 22, 2013

Sorry NO nothing has show up let me try PM you now…

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
Guru ,
Feb 24, 2013 Feb 24, 2013

Try this… If I avoid the broked intro page the downloads work OK… I have the SDK *.dmg files but they are mac OS versions…?

http://www.adobe.com/devnet/bridge.html

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
Engaged ,
Feb 28, 2013 Feb 28, 2013

Thanks.

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
Engaged ,
Mar 08, 2013 Mar 08, 2013

So I am trying Bridge talk now but I am quite sure I don't understand it. I am trying something like this to run my action but it is not working. It does return true. But does not run the action.

var thumb = app.document.selections[0];

//alert(thumb.name);

thumb.open();

var bt = new BridgeTalk;

bt.target = "photoshop";

bt.body = " Application.doAction(2012 Design BW,Design);";

bt.send();

I know there has to be something missing here but I am not sure what. The quide does not seem clear to me.

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
Guru ,
Mar 08, 2013 Mar 08, 2013

Hum you want to script running a Photoshop action…? Can I ask why… This is aready doable as a 2 way street… In Bridge you can make selection and use menubar/tools/photoshop/batch or from Photoshop you can batch an action and select Bridge as source… Is you not tring to re-invent the wheel…? or are you just making a test to go off and do your own thing…? Beside that you are asking to run an action but you have not opened a file Photoshop could only do this if a suitable file happeded to be open at the time…

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
Engaged ,
Mar 08, 2013 Mar 08, 2013

This is not the end all. Yes the plan is to select and read all the names in the current selected folder. Based on the name it will run an action to make them black and white. Why? Because I can lump this in with many other things happening when a button is pressed. Is any script a new invention when we work inside a static program? I think the problem I am having might be the version of PSD I am running.

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
Engaged ,
Mar 11, 2013 Mar 11, 2013

This works. I can get it to say this alert in the photoshop version that is the same as the STK.Not the newest version it doesn't work.

var crud="alert('Hello Photoshop')";

Then if I try this nothing. var crud=" app.doAction(2012 Design BW,Design);"

So I am not sure what I am doing wrong yet. I think I am giving up on trying to use CS6 photoshop and run with the same version as the bridge I am using wich is CS5. app.doAction is not working though.

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
Engaged ,
Mar 12, 2013 Mar 12, 2013

This worked from ths STK. I am going to now try it from a onClick function. 

var bt = new BridgeTalk;

bt.target = "photoshop";

var crud="try{doAction('2012 eDesign BW','eDesign' );}catch(e){}";

bt.body =crud;

bt.send();

I am wondering if I should assign a photoshop version and check status from Bridge

or write it into this string as a function for photoshop. Having the doAction in this block seemed to help.

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
Engaged ,
Mar 13, 2013 Mar 13, 2013
LATEST

Here is another go at this. It is working however, my target of photoshop 13 quits working when I put it inside this loop. The result is it wants to open up CS5 PHOTOSHOP.

I am not sure about that yet. here it is.

#target bridge

app.document.deselectAll();

var thumbs = app.document.getSelection("*");

for(var a in thumbs){

var f =thumbs.name.slice(0,10);

var poo=f.indexOf ("BW");

if(f.indexOf ("BW")!=-1){

    var poop=app.document.select(app.document.thumbnail.children) ;

    var thumb = app.document.selections[0];

    thumb.open();

    runAction();

    }

}

function runAction(){

    var bt = new BridgeTalk;

bt.target = "photoshop","13";

var crud="try{doAction('2012 Design BW','Design' );}catch(e){}";

bt.body =crud;

bt.send();}

I am running this from the STK. I am not sure if it would help it to run from Bridge I might try that next.

If you have any ideas I would love to hear them.

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