Skip to main content
June 4, 2012
Question

Is it possible to script with Photoshop without explicit BridgeTalk use?

  • June 4, 2012
  • 1 reply
  • 1646 views

Not sure if I'm just "doing it wrong", but let me try to explain.

I know the usual "BridgeTalk.send()" process for sending messages to another application. What I'd like to do is join the scripts that I use for the different applications and have the process initiated from one, without having to use "eval()"'d scripts.

When my #target is "illustrator" the app object refers to the Illustrator object. The "photoshop" object within Illustrator is not the same as the "Application" object that would be available if the #target was something else. Is it possible to do this?

Simply put, with Photoshop and Illustrator open, I want to use a script ran from Illustrator to affect Photoshop without using the "eval()" method (and BridgeTalk.send() -- which is still just an "eval()"'d body.)

Thanks!

Edit: Not sure if it's hindsight or just a moment of clarity. I see there's a Application.doAction() method, is there one for running a specific script? That might be a better way to accomplish what I want to do.

This topic has been closed for replies.

1 reply

Inspiring
June 4, 2012

As well as sending bridgetalk messages yourself there are a few cross-dom functions listed in the guides… To be honest not all of these have worked as expected for me in the past… But I have jumped CS2 to CS5. Not looked recently but these used to be bridgetalk javascript functions written by Adobe that were in your startup scripts they just did all of the evaluation calls for you… What is it that you want to do?

June 4, 2012

Well part of my workflow has me creating the drawing in Illustrator then exporting it to Photoshop to do all the raster things. These are architectural drawings (before they get to Illustrator they are born as CAD drawings.) I'm generating "pretty" display drawings. There is a lot of them so a lot of the "actions" on the files are repetitive and consistent. I've already got scripts for both the Illustrator and Photoshop side (that include exporting now). I'd like to invoke the Photoshop script from the Illustrator one, rather than having to manually run it from Photoshop.

The reason that the BridgeTalk "eval()" solution isn't ideal, is that these are fairly "large" scripts. Preparing them to be escaped so they could be "eval()"'d is just a bit of a nuissance to me. Not the end of the world mind you, just a nuissance.

Inspiring
June 4, 2012

Does a simple File.execute() work if the Ps script is in the correct location? The othe way to avoid bridgtalk is use AppleScript or VB to use app do script in both…?