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

Batch Renaming Issue with Milliseconds

Explorer ,
Sep 28, 2024 Sep 28, 2024

Hello Community,

filenames out of the camera are set as _DSC1.* _DSC2.*, _DSC3.* …

My Batch Renaming procedure includes MMSS to ensure right chronological sequence:

step31519705xkxe_0-1727523446877.pngexpand image

(Another text line not shown, as last step to add model).

What I get is:

step31519705xkxe_1-1727523463146.pngexpand image

So Milliseconds are reflected as 000 in the renaming procedure although they are included in the metadata: File info:

step31519705xkxe_2-1727523474500.pngexpand image

 

How do I get this to work correctly? Result should be: 20240928_102028980_D750

These issues have been reported earlier Adobe Bridge Batch rename - issues to include mill... - Adobe Community - 12519842 but doesn’t seem to be fixed yet?

Thanks for your ideas!!

Martin

(Bridge 14.1, Windows 11)

TOPICS
Batch , Metadata , Problem or error
2.5K
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

Community Expert , Oct 03, 2024 Oct 03, 2024

For what it's worth, here is the Bridge script to batch rename using milliseconds:

 

/*
Batch Rename to YYYYMMDD_HHMMSSMS_D750.jsx
v1.0 - 3rd October 2024, Stephen Marsh
https://community.adobe.com/t5/bridge-discussions/batch-renaming-issue-with-milliseconds/td-p/14886235

Rename from:

_DSC1.jpg
_DSC1.NEF

to:

YYYYMMDD_HHMMSSMS_D750.jpg
YYYYMMDD_HHMMSSMS_D750.NEF

With the MS or Millisecond value being the only unique part of the filename.

Note: Bridge 2024 fails to refresh, so refresh/F5 man
...
Translate
LEGEND ,
Sep 30, 2024 Sep 30, 2024

This has been brought up before as an issue with video and image sequences. Who knows if a fix is possible or if it will be implemented.

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 ,
Oct 02, 2024 Oct 02, 2024

@Lumigraphics wrote a fantastic Bridge script to run ExifTool commands, essentially allowing Bridge to be used as an GUI for selecting files and running commands outside of Terminal.app or CMD.exe:

 

https://community.adobe.com/t5/bridge-discussions/running-exiftool-from-bridge-with-app-system/td-p/...

 

2024-10-03_12-01-30 (1).pngexpand image

 

2024-10-03_12-01-58 (1).pngexpand image

 

P.S. I have updated the previous code examples to remove the underscore before the milliseconds value since these screenshots were 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
Explorer ,
Oct 03, 2024 Oct 03, 2024

Hi Guys

what a great piece of work! And having an Exiftool-GUI inside Bridge is an amazing improvement in handling the tool!

Now I'm off to work, will try to implement all this in my workflow later. Thanks guys!!!

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 ,
Oct 03, 2024 Oct 03, 2024

The latest versions of my scripts are available for download on Dropbox.

https://www.dropbox.com/sh/mg817g9a9ymbasi/AADTmXUVxmFfM58bcyYE7yiwa?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
Explorer ,
Oct 03, 2024 Oct 03, 2024

Hi Lumigraphics,

very sorry, but unfortunetely I couldn't get your script RunEXIFTool to work.

What did I do:

- some time ago installed Exiftool (located: "C:\Windows\exiftool.exe"; "C:\Windows\exiftool_files\").

- tested codes provided above by Stephen with ExiftoolGUI direct, and they worked perfectly

- downloaded your script Run EXIFTool from the Dropbox, download directly as *.jsx, no renaming necessary

- copied into Bridge2024/Startup Scripts folder

- started Bridge, Bridge asks for approval of new script, yes

- Preferences/ Startup Scripts show correctly installed script

step31519705xkxe_0-1727985276804.pngexpand image

- Switched to content panel, selected 3 test files, right click, Run EXIF Tool is offered as new option.
So far, so good.

step31519705xkxe_1-1727985384633.pngexpand image

- click - and nothing happens, no new panel comes up, no hidden window either. 

What do I miss here?

Sorry to bother again.

Thanks!!

 

 

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 ,
Oct 03, 2024 Oct 03, 2024

Hold down command/control key when running it. I need to update the code a bit, it works on Bridge 12 as-is but not Bridge 13+.

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
Explorer ,
Oct 03, 2024 Oct 03, 2024

Ah, ok. Got the panel opening in Bridge 11 with CTRL key (not in 14, as you said).

Entered the same code as you did (except  changing ' into ", I'm on Windows).

step31519705xkxe_0-1727992691542.pngexpand image

And produced a compiling error in vbstemp.vbs ("syntax error at position 166")

Which is position 166? It's the $ ?

vbstemp.vbs:
CreateObject("Wscript.Shell").Run "powershell -NoLogo -NoProfile -Command Start-Process -FilePath 'exiftool' -ArgumentList '-P_in_place "-XMP-xmpMM:PreservedFileName<${filename;s/\.[^.]*$//}" -execute "-filename<${DateTimeOriginal;s/://g;s/ /_/g}${SubSecTimeOriginal}_${model;s/(^.+ )(.+)/$2/}.%e" -common_args -r -overwrite_original \""C:\Users\User\Pictures\Directory\Test\_DSC6510.JPG\""' -RedirectStandardOutput 'C:\Users\User\AppData\Local\Temp\exiftemp.txt' -WindowStyle Minimized", 0, True

 

Ok, now I'm lost ...

No need to take this up, if you don't want to chew the bone. I'm completely fine with all your help given so far and I've the millisec and renaming problem solved perfectly. Thanks very much once again!

 

 

 

 

 

 

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 ,
Oct 04, 2024 Oct 04, 2024

Using the command prompt on Windows is a PITA, you get the ugly command window. So I have a workaround where I write a temp file and execute it with Powershell to run commands silently. This may be a collision between the $ used in EXIFTool and the command run via VBS. Does your command work in a command window?

I'm not a Windows user unless I'm forced to be so this is all just painful for me 😕

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
Explorer ,
Oct 04, 2024 Oct 04, 2024

PITA is confirmed. And no, didnt't get it to work in the Command Window.

But I did get it to work in the EXIFToolGUI, which means that it is perfectly scripted.

Is the preferable way to use the command line anyway.

Thanks Lumigraphics!

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 ,
Oct 04, 2024 Oct 04, 2024

@step31519705xkxe 

 

Although ExifTool is a CLI based tool, there are different options available to Windows or Mac users to make it easier to use.

 

Here is an example from the Mac where I have integrated it into the Finder, where I right click files and select the pre-made command that I wish to run. Or it could be an icon for drag-n-drop etc.

 

https://prepression.blogspot.com/2016/12/automator-diy-exiftool-gui-services.html?m=1

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 ,
Oct 04, 2024 Oct 04, 2024

Add your votes to fix this bug at the (separate) Bridge User Voice forum:

 

https://adobebridge.uservoice.com/forums/905377-report-bugs/suggestions/48926096-batch-rename-in-mil...

 

There are 3 tickets that you can vote for with similar issues on the incorrect millisecond 000 value.

 

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
Explorer ,
Oct 05, 2024 Oct 05, 2024
LATEST

Ok, done.

Thanks for the links, Stephen.

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