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
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
...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 🙂
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.
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.
Copy link to clipboard
Copied
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