Skip to main content
Inspiring
February 17, 2022
Answered

Executing a Ps script from Bridge

  • February 17, 2022
  • 4 replies
  • 6721 views

Br 12

Ps 23

 

I have been running the Ps script 'Load files into stack' with the option checked to create a Smart Object. Then going to Ps>Layers>SmartObject>StackMode & selecting the blend mode

I have to navigate from Ps to find the files in Br (sometimes they arent in their own folder>.

Ideally, I'd like to select the thumbnails in Bridge and run the Ps script.

CIs there a simple solution (I can't code) ?

This topic has been closed for replies.
Correct answer Kukurykus

Nope. Not working. I have attached the modified script for you to see.

 

Shift key  - makes a smart object & attempts to align layers

Ctrl key - loads layers but no smart object & no attempt to align

No keys - no smart object & attempts to align

Cntrl & Shift -  makes smart object & does Not attempt to align


loll I had to read wrongly your yestarday post or something made me to change my mind regarding correct behaviour as to the use of Control key. The ! character is not needed! 😛

 

When Shift and Ctrl are used the layers neither will be aligned nor smart object created.

 

When Control is used, you'll have aligned layers, when Shift, then Smart Object Created.

 

 

EDIT: I read that post and found what confused me. You said something that already worked right way. So I thought if you say it doesn't work as intended I did something wrong. Now we see I didn't, just see what you said: "I tried holding it (ie. Control) & it gave a non-aligned".

4 replies

Legend
February 18, 2022

Record an action that runs the script then use Batch in Bridge to run it.

Kukurykus
Legend
February 18, 2022

It won't work on selected thumbnails, as action played by Batch runs script from Photoshop.

Inspiring
October 6, 2022

@Kukurykus 

I was using your amended script successfully from Bridge for a few months - I could hold the Shift key to create a Smart Object,  but now suddenly it wont work from Br and I cant tell if or how it was damaged. Tried the line changes you posted above but it's not working/I'm making an error that I can't identify

 

Inspiring
February 17, 2022

I forgot to say that I am on a Mac, in case that makes a difference.

 

If the Russel Brown script doesnt work on Ps 23 and Bridge 12 then I guess creating an Action is my best bet ? I dont know what or how to use Bridge Talk as previously suggested

 

If so, are these all the necessary action steps from Bridge -

1. Tools>Ps>Load files into layers (I will have highlighted the selected thumbnails)

2. Select all layers (Select>All Layers)

3. Layers> Smart Objects> Convert to Smart Object

4. Layer>Smart Objects>Stack Mode>

Stephen Marsh
Community Expert
Community Expert
February 17, 2022

Russell Brown's Services: stack-o-matic script does this for Bridge into Photoshop.

 

http://www.russellbrown.com/scripts.html

Inspiring
February 17, 2022

Please see screenshot. Is this the one you refer to & will it work with the latest version of Ps & Br ?

Kukurykus
Legend
February 17, 2022

Not sure what you mean by -

You may edit in TextEdit, but you must write file down in same encoding that is now.

Can I not Cut  and Paste - will it be incorrect? (see attached)

 

It is a locked file and will only let me change it in a duplicate file. Do I save the duplicate and then rename it to the same as the original and replace it?

 

If I dont get a dialog how do I control whether 

1. if it will create a smart object or not from the layers

2. if it will try and align the layers or not (as per the script in Ps)

 

I will attach the edited duplicate file for you to see if it's correct


Chose first 'TextEdit -> Preferences -> Plain Text' before you save .jsx file.

 

Replace:

 

alignFlag = loadLayers.createSmartObject = true

 

to:

 

with(ScriptUI.environment.keyboardState) alignFlag = ctrlKey, loadLayers.createSmartObject = shiftKey

 

and when running script from menu hold Shift for Smart Object, Control for non-alligning

Kukurykus
Legend
February 17, 2022

You can do it with BridgeTalk method.

Inspiring
February 17, 2022

Thank you but I don't know what BridgeTalk is? As I said I can't code if that's what it is. I need a simple solution.