Skip to main content
patrickc22898988
Participant
Jan 11, 2021 4:26 PM UTC
Answered

Exporting List, Metadata, Keywords to CSV, Excel, Etc

Hi,

I am using the latest version of Bridge (CC) and would like to export a list of selected files, including Keywords, Rating, and File Location if possible.

In a previous version of Bridge, I had used a script to do this. However, since then it seems that this functionality has been discontinued. Is there any way to do what I want in this "Professional" software that we are paying so much for? 

This topic is closed to new replies. Start a new post to keep the conversation going.
LumigraphicsCorrect answer
Legend
Jan 12, 2021 6:54 PM UTC

Adobe has never offered this. However, there are scripts, including my Folder List Export script, which have this functionality.

Adobe Scripts?

33 replies

Stephen Marsh
Community Expert
Community Expert
Jun 22, 2021 3:38 AM UTC

Various options also listed here:

 

Extracting Metadata to .CSV

 

Translate
Participating Frequently
Dec 28, 2024 4:14 PM UTC

Here's a script to auto place selected images from Bridge and put them on  Indesign pages. The only problem with it is that on the first page, top row left side,  it places 2 images on top of each other in the same picture frame. Other than that it works well. Any ideas on how to fix the javascript to eliminate the overlapping placement on the first page?

 

#target bridge
if (BridgeTalk.appName == "bridge") {
var menu = MenuElement.create("command", "AutoPlaceFixed2", "at the end of Tools");
menu.onSelect = function () {
var selectedFiles = app.document.selections;
if (selectedFiles.length === 0) {
alert("Please select one or more image files.");
return;
}
var filePaths = [];
for (var i = 0; i < selectedFiles.length; i++) {
if (selectedFiles[i].type === "file") {
filePaths.push(selectedFiles[i].spec.fsName);
}
}
if (filePaths.length === 0) {
alert("No valid image files selected.");
return;
}
var bt = new BridgeTalk();
bt.target = "indesign";
bt.body = "var filePaths = " + filePaths.toSource() + ";";
bt.body += "(" + placeImagesInInDesign.toString() + ")();";
bt.send();
};
}

function placeImagesInInDesign() {
if (app.documents.length === 0) {
app.documents.add();
}
var doc = app.activeDocument;
var marginPreferences = doc.marginPreferences;
var pageWidth = doc.documentPreferences.pageWidth;
var pageHeight = doc.documentPreferences.pageHeight;
var x = marginPreferences.left;
var y = marginPreferences.top;
var spacing = 0; // No spacing between images
var currentPage = doc.pages[0];

for (var i = 0; i < filePaths.length; i++) {
var imageFile = new File(filePaths[i]);

// Create a new rectangle frame for the image
var rect = currentPage.rectangles.add();

// Place the image in the rectangle
var placedImage = rect.place(imageFile)[0];

// Get the original dimensions of the placed image
var originalWidth = placedImage.geometricBounds[3] - placedImage.geometricBounds[1];
var originalHeight = placedImage.geometricBounds[2] - placedImage.geometricBounds[0];

// Check if the next image would exceed the horizontal boundary
if (x + originalWidth > pageWidth - marginPreferences.right) {
x = marginPreferences.left; // Reset x to start of new row
y += originalHeight + spacing; // Move down for the new row
}

// Check if the next row would exceed the vertical boundary
if (y + originalHeight > pageHeight - marginPreferences.bottom) {
currentPage = doc.pages.add(); // Add a new page
x = marginPreferences.left; // Reset x for the new page
y = marginPreferences.top; // Reset y for the new page
}

// Ensure the frame matches the original image dimensions
rect.geometricBounds = [y, x, y + originalHeight, x + originalWidth];

// Fit the content to the frame
rect.fit(FitOptions.CONTENT_TO_FRAME);

// Update position for the next image
x += originalWidth + spacing;
}
}

Translate
LumigraphicsCorrect answer
Legend
Jan 12, 2021 6:54 PM UTC

Adobe has never offered this. However, there are scripts, including my Folder List Export script, which have this functionality.

Adobe Scripts?

Translate
patrickc22898988
Participant
Jan 19, 2021 3:23 PM UTC

Thanks a lot Lumigraphics. Great set of tools.
I wish Adobe would integrate stuff like this into the standard functionality of their apps.

Translate
Legend
Jan 20, 2021 2:11 PM UTC

I've asked them to but no progress.

Translate