So close, but I can't figure out how to implement JS in Adobe Bridge

Upload Adobe Bridge Scripts, Download Adobe Bridge Scripts, Support for Individual Adobe Bridge Scripts

Moderators: Tom, Kukurykus

rk@abq1.com
Posts: 4
Joined: Sat Mar 04, 2017 2:10 am

So close, but I can't figure out how to implement JS in Adobe Bridge

Post by rk@abq1.com »

Hello All...

You cannot imagine how thrilled I was to locate Paul's script for taking info from a spreadsheet and automating it's import into the Metadata of photographs!!!

Shaking like a Happy Dog!!!

I'm missing ONE step -- well maybe more, but I made a quick video to explain what I do understand, and where my knowledge is lacking.

It's only 3 minutes long... but if any of you could get me over the hump of how to implement the script in Adobe Bridge, I'd be very grateful!
https://youtu.be/pcfNo_SPGew

Best!
And thanks in advance!!!
Robert
(505) 908-7971
rk@abq1.com
Posts: 4
Joined: Sat Mar 04, 2017 2:10 am

Re: So close, but I can't figure out how to implement JS in Adobe Bridge

Post by rk@abq1.com »

Hey All,

I'm nibbling my way closer, but still stuck...

1) How do I get a JavaScript that IS loaded, to run?
2) How do I get the script to read a CSV file to match it (key it) with the images already displaying inside of Adobe Bridge...

I may be able to get over the hump if I can get those two questions answered...
Here's a video I made with my progress.

https://youtu.be/5wVNFwKla0U

I'm trying to puzzle this out by reading the script, but this isn't really in my Wheelhouse
- and I still don't know how to do it... but I am trying!
Clues seem to be here - but I'm not understanding... but maybe if I can get the script to execute after tuning my CSV, it won't matter.

Help Please!
Robert

inputFile.open('r');
if(win.g15.cb1.value) inputFile.readln();
var datFile=[];
while(!inputFile.eof){
var line = inputFile.readln();
if(line.length > 5) datFile.push(line);
}
inputFile.close();
errorLog.open('w');
errorLog.writeln("Processing :: "+decodeURI(inputFile.fsName) +" Total Files = "+datFile.length+"\r\r");
errorLog.close();
for(var t in datFile){
var str=datFile[t];
if(win.g15.rb2.value){
str= str.split('\t');
}else{
str= str.split(',');
}
if(!win.g15.cb2.value){//Use subfolders
var fileName = new File(Path+"/"+ str.shift());
}else{
var nextFile = str.shift();
for(var g in folders){
var fileName = new File(folders[g] + "/" + nextFile);
if(fileName.exists) break;
}
if(!fileName.exists) fileName = new File(Path + "/" + nextFile);
}

var Keys=''; var Desc =''; var Head = ''; var Title =''; var Instructions =''; var CopyInfo =''; var Creator='';