Filename extract and rename
Posted by richieclose on Feb 03, 2016; 9:25am
URL: http://imagej.273.s1.nabble.com/Filename-extract-and-rename-tp5015526.html
I'm looking to build out a macro which will extract all file names in a directory, and perform a rename on the file before saving the new file name out to a text file. The first piece I can do using macro's already
available, but I'm struggling trying to figure out the latter.
A typical filename would look something like this: *image_D2016-02-02T10-30-23-653793Z_0.JPG* and what I would like to do is rename it to *T10-30-23-653793Z_0.JPG* (everything from the letter 'T' onwards).
Any help would be much appreciated!
Thanks
Richie