Hi folks! I’m new to DEVONthink and working to understand what I can do with SmartRules. My first simple project is vexing me. I’m hoping someone can point me in the right direction.
Basically, if a filename starts with the date pattern “YYYY-MM-DD FILENAME”, I want to import it with the name intact.
If the filename does not start with the date pattern “YYYY-MM-DD” I want to rename the file to using the creation date to place the date at the front of the filename. “YYYY-MM-DD FILENAME”.
I’m sure I’m missing something simple. Thanks for any guidance.
Welcome @roba1701
You should not have criteria-less smart rules. At a minimum, Kind is Any Document is advisable. You should strive to be as specific as possible with automations.
Basically, if a filename starts with the date pattern “YYYY-MM-DD FILENAME”, I want to import it with the name intact.
This doesn’t need to be considered as the only function of the rule is to change the name when it doesn’t match. File with names beginning with four numbers-two number-two numbers will not be matched and import as-is.
If the filename does not start with the date pattern “YYYY-MM-DD” I want to rename the file to using the creation date to place the date at the front of the filename. “YYYY-MM-DD FILENAME”.
A few things…
These forums have plenty of examples. There’s also the Scripts > More Scripts > Smart Rules where you can install extra smart rules. Just duplicate them and dissect / edit them .
Some stuff on our blog, including this…
PS: There’s no need to rush into things, especially if you’re new to DEVONthink. Go at a comfortable pace and use the app the way you need to use it now. Automations should come after you’ve established actual processes you can do manually.
But if the rule states not to process a file if it starts with a sortable date, why do all my files with sortable dates show up when the rule is highlighted? It doesn’t make sense. Shouldn’t it only select file names that don’t start with a sortable date? What am I missing here? I was a DBA and I’m confused. LOL
I’m not looking at your computer so I can’t see what you’re talking about.
Screen captures or a screencast would be helpful. If you don’t want to share it publicly, open a support ticket and attach them.