Skip to main content
Known Participant
May 29, 2008
Question

possible to run a photoshop script by selecting files in Bridge?

  • May 29, 2008
  • 3 replies
  • 1061 views
Hi,

I have a good script I've written that I always used to run from Photoshop. The script has a dialog box which asks where to get the files from. Is it possible to select files in bridge and run the script from there? Without rewriting it for Bridge?

Thanks,
Stan
This topic has been closed for replies.

3 replies

Participating Frequently
November 30, 2008
Thanks for answers.

Good Luck.
______
My Si tes
garek0071Author
Known Participant
May 29, 2008
Hey that seems pretty cool, I think I can be happy with that.
Is that a function you wrote? If so, where do I find xtools? ON ps-scripts.com?

thanks X!
Known Participant
May 29, 2008
stan_alachniewicz@adobeforums.com wrote:
> Hey that seems pretty cool, I think I can be happy with that.
> Is that a function you wrote?
Yep.


> If so, where do I find xtools? ON ps-scripts.com?

This is the root of the xtools cvs tree online.
http://ps-scripts.cvs.sourceforge.net/ps-scripts/xtools

After you click on the file you want, select 'download' from the line that reads:
Links to HEAD: (view) (download) (annotate)

Or, just go here:
http://ps-scripts.cvs.sourceforge.net/*checkout*/ps-scripts/xtools/xlib/XBridgeTalk.jsx


-X
--
for photoshop scripting solutions of all sorts
contact: xbytor@gmail.com
Known Participant
May 29, 2008
> I have a good script I've written that I always used to run from Photoshop. The script has a dialog box which asks where to get the files from. Is it possible to select files in bridge and run the script from there? Without rewriting it for Bridge?

Yes, this is possible. However, a much easier solution is to select the files in
Bridge then switch to PS manually to run your script. It avoids having to having
to write any code to run in Bridge at the cost of not having seamless integration.

In xtools/xlib/XBridgeTalk.jsx I have a set of functions that simplify working
with Bridge from within PS. For instance:

var files = XBridgeTalk.getBridgeSelection();

will return an array of Files that are currently selected in Bridge. If Bridge
isn't running or if no files are selected it returns an empty array.

-X
--
for photoshop scripting solutions of all sorts
contact: xbytor@gmail.com