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

Adobe Bridge javascript create colections

Explorer ,
Dec 09, 2022 Dec 09, 2022

Copy link to clipboard

Copied

Hi there

How are you doing?

I would like to create colections from selected items, or an array of full paths.
But, I couldn´t find in the javascript guide any reference about it.
Could you show me an example or tel me when can I find a updated documentation.
The last one than I´ve founded belongs to CS3 version yet.

Thanks

TOPICS
Scripting

Views

291

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

Community Expert , Dec 09, 2022 Dec 09, 2022

You can find the latest SDK at https://developer.adobe.com/console/servicesandapis

 

You can create a new collection from selected thumbnails in Bridge this way:

var colItems = app.document.selections;
var colName = "New Collection";
var col = app.createCollection(colName);
app.addCollectionMember(col,colItems);
app.document.thumbnail = col;

 

Oh, by the way, there is a bug in Bridge 2023 so that the new collection does not appear in the Collections panel list unless you restart Bridge. Hopefull

...

Votes

Translate

Translate
Community Expert ,
Dec 09, 2022 Dec 09, 2022

Copy link to clipboard

Copied

You can find the latest SDK at https://developer.adobe.com/console/servicesandapis

 

You can create a new collection from selected thumbnails in Bridge this way:

var colItems = app.document.selections;
var colName = "New Collection";
var col = app.createCollection(colName);
app.addCollectionMember(col,colItems);
app.document.thumbnail = col;

 

Oh, by the way, there is a bug in Bridge 2023 so that the new collection does not appear in the Collections panel list unless you restart Bridge. Hopefully this will be fixed soon 🙂 

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 ,
Dec 12, 2022 Dec 12, 2022

Copy link to clipboard

Copied

Hi Gregreser

Thanks for your answer. Thanks a lot for your help.

I think we are almost there. I need to create a colection from a list of files. All these files are in diferent folders, so, I can´t use selection.

I´ve found a solution before, whre I write a XML file and storage it in a folder inside the main folder of the Bridge, but it didn´t work for me because the I need to restart Brige to the new collection appear (the same bug that you said).
About the documentation, my firewall was blocking the adress you sent me. I will download it again.
Thans for yout hand.

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
Community Expert ,
Dec 12, 2022 Dec 12, 2022

Copy link to clipboard

Copied

You could have a palette window, or a tabbed panel, that stays open as you navigate through different folders and alows you to add files to a list then, when you are finished, you click a button to create a new collection. Let me know if you want to collaborate on it.

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
LEGEND ,
Dec 13, 2022 Dec 13, 2022

Copy link to clipboard

Copied

LATEST

You actually don't need to restart Bridge to show a new collection, you can close the Collections panel and reopen it.

I have a script that can find and save files to a collection, Multisearch Plus. Its part of my free Utility Script pack, Apache-licensed if you want to user parts of the code.

https://www.dropbox.com/sh/mg817g9a9ymbasi/AADTmXUVxmFfM58bcyYE7yiwa?dl=0

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