Isolate values from in Move string

Advanced Renamer forum
#1 : 18/07-18 16:07
John Grantman
John Grantman
Posts: 6
Under Programs>Settings>Image Files>EXIF field... is set to ExifTool DateOriginal, However the tags do not use correct date.

<ExifTool:DateTimeOriginal> does show correct value. I can use the value in the file name but can't figure out how to pull parts of the string into the Output Folder string for Batch Move.

Using the following example value:

2015_06_05_19_03_19.143

I want to use "2015" and "06" and "05"... etc... in the Move string. If I use <Img Year> it will show "2018" and same for all other <Img x> tags.

Is there a method to specify "<ExifTool:SubSecDateTimeOriginal>" and pull out values using <Word:1> without having to rename the file first? If I set the rename to just "<ExifTool:SubSecDateTimeOriginal>" the Move Output folder value uses the original file name not the pending new file name when calculating <Word:1>.

Or... some other approach to pull out part of the "<ExifTool:SubSecDateTimeOriginal>" value in the Move Output folder value.



18/07-18 16:07
#2 : 18/07-18 17:54
Domi
Domi
Posts: 27
Reply to #1:
Ok, you want to reorder the date. I've tried the move method, but you would need several move actions.
I would use a RegEx replace:
> Replace Method, Text to be replace: (\d{4}).(\d{2}).(\d{2}).(\d{2}).(\d{2}).(\d{2})
That means every () represent a number.
You can then reorder them like you want.

> Replace Method, Replace with: \3-\2-\1 \4-\5-\6
> Replace Method, Use regular expressions checked

Would result in: 05-06-2016 19-03-19

Is this what you wanted?

----------

In special cases you may contact me on Discord: http://bit.ly/dsDisco


18/07-18 17:54
#3 : 19/07-18 02:20
John Grantman
John Grantman
Posts: 6
Reply to #2: Thanks for the reply. I don't think that is what I am describing. Here is a more specific description.

I want to use the Batch Move feature to put files into directories based on parts of an EXIF tag. Here is an example.

The tag is: <ExifTool:SubSecDateTimeOriginal>
Which has the value "2015:06:13 13:17:02.408

I want to create an Output Folder string that looks like this: ...\2015\6\12\

I don't want to use <Img Year> or any of the other built in tags because they reference incorrect dates in some files.

The Replace Method is only available for the file name not the Output Folder of the Batch Move... or I don't know how to leverage the method in the Output Folder.


19/07-18 02:20
#4 : 19/07-18 11:04
Domi
Domi
Posts: 27
Reply to #3:
AR is for renaming. You can not copy, move, delete or create files or folders.

The Move method moves characters of the file-/folder-name.

From 19-07-2018.jpg you can move characters, so you get 2018-07-19.jpg

----------

In special cases you may contact me on Discord: http://bit.ly/dsDisco


19/07-18 11:04
#5 : 20/07-18 23:50
Mark
Mark
Posts: 175
Reply to #4:
But AR does cater for moving & copying, within limits ..... https://www.advancedrenamer.com/user_guide/batch mode


20/07-18 23:50
#6 : 21/07-18 01:15
Domi
Domi
Posts: 27
Reply to #5:
Ok ok. You can also copy or move the files. But only to one fixed folder. There's no action or option to change the folder using one of the methods. Only the simple tags are supported in the destination. If the tag does not give the correct value, your files will go to nirvana.

If you really must move the files to different directories, you should use another program. In such cases I use XYplorer and it's scripting. IMHO file operations are too much for AR. :(

----------

In special cases you may contact me on Discord: http://bit.ly/dsDisco


21/07-18 01:15