I’m playing with smart rules to automatically process scans that I import to DT. One thing I’d like to be able to do boils down to being able to process a file in different ways depending on whether the document’s “Sortable Document Date” is empty or not: if it’s not empty, I’d replace the date/time in the name of the item with that date, but I would want to leave the name as it was if there was no “Sortable Document Date” for the item.
Unfortunately, there doesn’t seem to be a way to condition the execution of a smart rule on whether the file has a non-empty “Sortable Document Date”. Also, unlike matches from scanning in the actions for the rule, the presence of “Sortable Document Date” in a rule doesn’t seem to cause the rule to be ignored. Instead, the rename takes place with an empty string interpolated.
Am I missing something obvious in the smart rules documentation that would help me do this?
I’m guessing that you can do pretty much anything if you put a script into the rule, but if that’s going to be the solution I might need some pointers to give me an idea of how to access things like the document date values for an item. AppleScript has never been something I’ve got heavily into.