IMPORTANT: Needs at least DOpus v13.7.1
v1.2.0 (Jul 12, 2024) :
- Added support for datetimeoriginal and datetimecreated values (read only).
- Added support for minimize and maximize buttons in the title bar.
- Other minor corrections.
IMPORTANT: Needs at least DOpus v13.7.1
v1.2.0 (Jul 12, 2024) :
Try using the latest version, that has support for it
Out of curiosity: what it does (or is supposed to do) if "Regular Expressions" is not checked?
If I enter * in "Find:" field then the current values of selected metadata are displayed, no matter what I type in "Replace:" field and which other options I enable.
It will be treated as a literal string.
Find and Replace fields are for, well, find patterns and replace them among the selected properties.
You can use regular expressions (like .*
) by checking the corresponding control. (The published version doesn't have support for DO wildcards)
If no replacement is made (e.g. when you're trying to replace an actual *
, which assume doesn't exists in the current value), the preview shown will be the same as the original value.
Thank you! I finally got around to testing and using this! But I have a problem!
I want to remove an unwanted Tag and replace replace it with NOTHING, but I have not yet figured out how.
If I enter the unwanted Tag in the 'Find' field and leave the 'Replace' field empty, I cannot apply the change. The buttons are greyed-out.
If I enter the unwanted Tag in the 'Find' field, use Regex, and enter {empty} in the 'Replace' field, all Tags for that file are removed.
Is it possible to replace text and/or characters in the Tags field (and other fields) with nothing?
I’m not using the published version at the moment, but for that specific case you can try:
Find: unwanted_tag
Replace: ;
You don’t need regular expressions; other search flags might be needed depending on your use case. But using a "semicolon" as the replacement should work (for tags).
Thank you, but I'm confused about 'hyphen' as no hyphen was in your example.
I also have a problem with double spaces in Tags, like 2 spaces between a person's first name and last name. I want to replace 2 spaces with one space, but cannot figure out how to do that.
Ah yes sorry. I meant a "semicolon" (;
)
You can use regular expressions for that. Not tested:
Find : (\s)+
Replace : $1
with "Regular Expressions" and "Replace All" checked.
Thank you very much. That works.
With this 'flavour' of Regex, is there anything one can enter in the 'Replace' field to replace whatever it is with NOTHING?
Do you have an example?
If the property has any other value, you can use a regex to discard the part you want to eliminate, or use {empty}
if you wish to erase the whole value.
My client's collection included some photos with punctuation in the Tags field at the beginning:
and IN some tags:
And at the end sometimes:
I tried DO Meta Wizard to get rid of the punctuation, but I was was not successful.
I ended up removing the punctuation manually.
Photos with multiple Tags had commas separating the tags, and DO Meta Wizard did help me change those to semi colons.
Not tested since I’m not at my computer with DOpus at the moment:
If the tags are separated by commas:
First task:
Find : ,
Replace : ;
Replace All
checked.
This will change all
commas to semicolons (no way to decide which one should be considered as a tag separator).
Then press “Add” and select “Tags” from the list (again).
Second task:
Find : (^|; )'(?=;|$)
Replace : $1
Regular expressions
and Replace All
checked.
Then press “Apply.”
If they’re already separated by semicolons, just use the second task.
Check with a few items first.
Edit: If the tags are separated by commas, you can change it in one task.
Find : (',|,)
Replace : ;
Regular expressions
and Replace All
checked.