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

Script for copying keywords to description field

Guest
Aug 07, 2011 Aug 07, 2011

Does anyone have a script that can be used in cs5 to copy the keywords to the description field?

Thanks

Mark

TOPICS
Scripting
16.6K
Translate
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

Advocate , Dec 08, 2022 Dec 08, 2022

@Lumigraphics is correct, there is no way in Bridge (in the app or via scripting) to change file Date Created.

ExifTool is your best bet to do the batch edit you want. 

ExifTool is an amazing tool but it is command line, which can be cumbersome if you're not used to it.

For what you want to do, I think this would be the command:

 

exiftool "-filecreatedate<datetimeoriginal" "DIR"

 

...where DIR is the name of a directory/folder containing the images. 

 

I tested this and it works for me, meaning

...
Translate
replies 144 Replies 144
Community Beginner ,
Jul 14, 2022 Jul 14, 2022

P. S. Yes, will submit the XMP file for strange DateTimeOriginal image when I hit one. Tnx for latest Script update! 

Translate
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 Beginner ,
Jul 15, 2022 Jul 15, 2022

Greg:  Of the 1,296 keyworded images I had ready at start of this Script project, 100% run through our new Script for copying keywords to description field!  Script does the job easily, flexibly.  Now place Script more properly in Adobe Bridge workflow.  Thank you.  Bob

Translate
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
Advocate ,
Jul 15, 2022 Jul 15, 2022

You're very welcome. I'm glad to hear it worked for you. 

I always learn new things when I build scripts, so it adds to my skills.

Translate
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 Beginner ,
Jul 21, 2022 Jul 21, 2022

What is the maximum number of images I can select with script?  I've successfully selected a folder with as many as 53, but when I attempt a folder with either 130 or 360, Adobe Bridge "freezes up" and I must restart the Bridge app!  I have a lare number of folders to process with script with these number of images.:)

Translate
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
Advocate ,
Jul 22, 2022 Jul 22, 2022

I would have thought 360 images would be no problem.

Does Bridge freeze up when you first open the script or when you run the renaming process?

When the script first opens, it reads the keywors in all the images, so that might take some time. Still, it shouldn't cause a crash.

I'll see if I can recreate the problem.

Are you working with a remote or shared drive?

Translate
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
Advocate ,
Jul 22, 2022 Jul 22, 2022

I ran a batch of 130 and it took 26 seconds for the script window to show, which is a long time. It looks like nothing is happening, but it is chruning through all the keywords, sorting and de-duping them to generate the list before the window open. I can add a small window that pops up immediate to let you know the script is reading the keywords. 

An alternate approach would be to read the saved keyword tree, instead of reading each image.

By keyword tree, I mean the list that appears in the side keyword panel.

BR_keyword_panel.jpg

 

The drawback is that this list will contain all your saved keywords, include ones that are not in your selected files, so the list will have a lot of unrelated keywords you have to scroll through.

Translate
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 Beginner ,
Jul 22, 2022 Jul 22, 2022

Thank you for re-assurances.  As my keyword tree list frequently is MUCH bigger than keywords for selected images, I agree loading the full keyword tree list-which keeps growing-is not probably best approach.  Think this User just needs to show more patience when it appears nothing is happening. 🙂  I'll give her another try!

Translate
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 Beginner ,
Jul 22, 2022 Jul 22, 2022

Would it be possible on these big image selections to have a counter showing progress reading images (and building display)?  Blank screen suggests user (me) not sure I activated Script correctly and getting several unnecessary instances of Script executing possibly concurrently.

Translate
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
Advocate ,
Jul 22, 2022 Jul 22, 2022
Translate
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 ,
Jul 22, 2022 Jul 22, 2022

Extendscript does have some "long-running task" functionality but its awfully opaque, I tried using it at one point and got nowhere.

Translate
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 Beginner ,
Jul 22, 2022 Jul 22, 2022

Currently running "360" selection... for a long time now.  You were right... I DID complete the 130 but it took far longer than 26 seconds on my Dell laptop.  A not-so-fast Intel ???.7 processor with two internal SSDs.  FYI:  My app messaging (before new version you just sent above with "Processing. . . " msg. gave me an Adobe Bridge hour-glass and Adobe Bride "<FolderName> Not Responding" msg upper left of screen.  Hence, my confusion... I thought Bridge had locked up.

Translate
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 Beginner ,
Jul 22, 2022 Jul 22, 2022

Hmmm... finally got to your download link above (today)... and Dropbox is empty!  I snooze, I lose.

Translate
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
Advocate ,
Jul 22, 2022 Jul 22, 2022

Yes, the Not Responding message is very missleading. It comes up a lot in Bridge and wish there were more accurate message.

 

I discovered that you get a faster load time if you only read IPTC Keywords or Lightroom Keywords (it's reading only half as many keywords). Since your IPTC and Lightroom keywords are very similar, maybe just reading IPTC would work. Still, 200 images took 1:39 to load on my laptop. 

 

Here's a new version. I added the Loading... pop up to also appear when you refresh the keyword list (after choosing IPTC, Lightroom, or both)

https://www.dropbox.com/s/k3583mkw8gyget7/Copy_Select_Keywords_to_Description_2022-07-22a.jsx?dl=0

Translate
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 Beginner ,
Jul 22, 2022 Jul 22, 2022

FYI:  Eventhough I had an Adobe Bridge hour-glass -- still with 360  selection -- with touchpad I accidently hit screen.  It now totally grayed out with Adobe Bridge "<FolderName> Not Responding" msg still upper right.  Think Adobe really in trouble now!  But won't touch to see if normal Script Select Keywords popup self corrects OK???   Back to original question:  What's the practical max. image selection size?

 

Translate
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
Advocate ,
Jul 22, 2022 Jul 22, 2022

Yes, Bridge will completely grey out if you click on it while it's "Not Responding". Usually it will come back once the process is complete.

 

I just tried running the script on 300 images and it took 10 minutes to load! That's a long time. Looks like 200 is a practical selection.

Translate
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 Beginner ,
Jul 22, 2022 Jul 22, 2022

Mine has been running since I last posted.  Wow! you must have a souped-up [Apple?] laptop! I'm still "Holding on"  😞

Translate
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
Advocate ,
Jul 22, 2022 Jul 22, 2022

No, just a Lenovo Windows laptop. Are your files on an external drive?

I think the "Eliminate these keywords" function might be causing the slowness. I'll play around and see what I can find out.

Translate
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 Beginner ,
Jul 22, 2022 Jul 22, 2022

Give up on 361 jpg selection.  3+ hours in loop. Using a Dell Inspiron-17-7778-2-in-1-Laptop with 32GB memory plus SSDs.  Jpgs of one of several Mother's Day shoots where over 1,000+ shots taken.

Translate
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
Advocate ,
Jul 22, 2022 Jul 22, 2022

It's not the "Eliminate these keywords" function slowing it down. I'll keep working on it.

 

Is there another approach? If you know the keywords you'll use, we could use that rather than reading them form the files. I suspect that the list changes for each Folder/Event so that's not practical. You probabaly want to use the keywords rather than hand entering the new decription because you've been careful with the keywords to keep them clean and unique.

Translate
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 Beginner ,
Jul 22, 2022 Jul 22, 2022

Is there another approach?

"If you know the keywords you'll use, we could use that rather than reading them form the files." I don't.  What's nice about Bridge is we can take a folder and looking through them, ADDING new keywords, as needed.

 

"I suspect that the list changes for each Folder/Event so that's not practical. You probabaly want to use the keywords rather than hand entering the new decription"  ( You got that!  Hand entering defeats the whole idea of our nice Script you've written. ) "because you've been careful with the keywords to keep them clean" (As best I could.)

 

Before you invest more time on project, seems to me that I've got to ask hard questions:

1) Will all my images EVER be included in a slide show showing Descriptions vs. just in Bridge/Lightroom for further Develop(ment) tweaks.   In reality, these big folders already haved had major Post done to them , shared with customer, and are Archieval only - no slideshows using a Description planned.

2) For the few instances where a large folder will be used as part of a slideshow with Descriptions, merely break the job up into smaller pieces where the Script shines... as I've done with over 1,500 images so far.

3) You've invested way too much time in this project already for me!  For my personal "little" groups of images, it is perfect!

Translate
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
Advocate ,
Jul 24, 2022 Jul 24, 2022

I was prepared to just let it go, but the time lag was bugging me. I kept playing with it and finally found a solution, I hope.

 

Try this version. I am able to load 500 images in 2 seconds (your mileage may vary).

https://www.dropbox.com/s/ewz1d9m81mjg5ma/Copy_Select_Keywords_to_Description_2022-07-24.jsx?dl=0

Translate
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 Beginner ,
Jul 24, 2022 Jul 24, 2022

WOW!  THAT WAS FAST!  380 images in maybe 1-2 seconds.  How in the world did you pall that off?  You have magic JS programming fingers!

Translate
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 ,
Jul 24, 2022 Jul 24, 2022

@gregreser - well done!

Translate
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
Advocate ,
Jul 24, 2022 Jul 24, 2022

I realized my comparison array grew exponentially with each loop. Now the script puts the first image's keywords into a master list array, then each subsequent image is compared to it and any new keywords are added to the master list. Since it's a short master list and each image only has a few keywords, it goes really fast.

 

Honestly, my first version was just really not written correctly, but I didn't realize until we tried a large number of files. I'm still learning.

Translate
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 Beginner ,
Jul 24, 2022 Jul 24, 2022

@gregreser - well done, indeed!  Again, thank you!

Translate
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