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

BridgeTalk does not work on Ps2023

Explorer ,
Oct 20, 2022 Oct 20, 2022

Copy link to clipboard

Copied

Hello,

I execute following code in Photoshop.

var bt = new BridgeTalk();
bt.target = "bridge";
var arg = {
folder: arguments[0] == undefined ? Folder("~/") : arguments[0],
bounds: Ini.screen.bounds
}

bt.body = """
(function () {
var arg = """ + arg.toSource() + """
for ( var i in arg.bounds )	arg.bounds[i] = Number(arg.bounds[i]);
var doc = new Document( arg.folder );
with ( doc ){
maximize();
resetToDefaultWorkspace();
try { browserMode = "full"; } catch (e) {}
setWorkspace ("lightTable");
height = arg.bounds.h / 4;
return [id].toSource();
}
})();
""";

bt.send();

 

The specified directory opens in Bridge with no problem in versions up to Ps2022, but does not work in Ps2023.

 

Does anyone know the cause and solution?

 

Thank you in advance!

Yasu

TOPICS
Actions and scripting , macOS , Windows

Views

630

Translate

Translate

Report

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

correct answers 1 Correct answer

Guide , Oct 24, 2022 Oct 24, 2022

try this:

 

app.browseTo(arg.folder);
var doc = app.document;

 

instead of

 

var doc = new Document( arg.folder );

 

Votes

Translate

Translate
Adobe
Guide ,
Oct 21, 2022 Oct 21, 2022

Copy link to clipboard

Copied

After the update, I also noticed that at some point bridgeTalk stopped working, but after restarting the computer, everything returned to normal.

 

If you write the arguments as constants, then you can run the script directly in the bridge (without using bridgeTalk) to debug and understand what exactly the problem is in the code execution.

 

In the new version, the document may contain tabs, most likely, this has affected the structure of DOM objects.

Votes

Translate

Translate

Report

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
Explorer ,
Oct 23, 2022 Oct 23, 2022

Copy link to clipboard

Copied

Thank you for your reply.

I restarted my computer and it was the same.

 

When I tried to debug in the bridge, I got an error in the file opening. It seems likely that the new tab feature of the new bridge is affecting this.

 

Thank you for the hint!

Yasuo

Votes

Translate

Translate

Report

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
Guide ,
Oct 24, 2022 Oct 24, 2022

Copy link to clipboard

Copied

try this:

 

app.browseTo(arg.folder);
var doc = app.document;

 

instead of

 

var doc = new Document( arg.folder );

 

Votes

Translate

Translate

Report

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
Explorer ,
Oct 24, 2022 Oct 24, 2022

Copy link to clipboard

Copied

I replaced it with the code you gave me and it worked!
Thank you very much!

Votes

Translate

Translate

Report

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
Valorous Hero ,
Oct 25, 2022 Oct 25, 2022

Copy link to clipboard

Copied

I am actually able to achieve my goal which is to make Bridge to go a folder using the document thumbnail property. However, Bridge never comes up front like I wish it would, here on Win11. Does Bridge stay in the background for you? I tried to bring it with BridgeTalk.bringToFront("bridge"), but to no avail.

 

Votes

Translate

Translate

Report

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
Guide ,
Oct 25, 2022 Oct 25, 2022

Copy link to clipboard

Copied

var bt = new BridgeTalk();
bt.target = "bridge";
bt.body = "(function () {app.bringToFront();})();";
bt.send();

Votes

Translate

Translate

Report

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
Valorous Hero ,
Oct 26, 2022 Oct 26, 2022

Copy link to clipboard

Copied

LATEST

Very good, this worked! Thank you. 

 

Votes

Translate

Translate

Report

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