Page 1 of 1

Using a file attribute in a custom token

PostPosted: Sun Nov 17, 2024 7:09 pm
by Lachlan Williams
I have a rule which looks for a date within the contents of a PDF (contents contain match) and uses that custom date in the actions to move, rename and tag the file. What I'm looking for is a way to use the file's Date Created attribute (or other attributes) within the same rule in the event that a date can't be matched in the contents. For example:

If [Any] of the following are met for [the current file or folder]
-- [Contents] [Contain match] [* Date]
-- [Date Created] [Matches] [* Date]

But I can't see a way to do this...you don't get a "Matches" or "Contains Match" option when using attributes like Date Created. Anyone know a way to do this?

Re: Using a file attribute in a custom token

PostPosted: Mon Nov 18, 2024 9:58 am
by Mr_Noodle
Why do you need to capture Date Created into a custom attribute?

Re: Using a file attribute in a custom token

PostPosted: Mon Nov 18, 2024 6:51 pm
by Lachlan Williams
Mr_Noodle wrote:Why do you need to capture Date Created into a custom attribute?


I need the new filename and tags to be derived from either a date matched within contents or (if no date able to be matched in contents), the file's creation date. My assumption is I'll need to reuse a custom date token to cater for both scenarios in the same rule.

Re: Using a file attribute in a custom token

PostPosted: Tue Nov 19, 2024 9:47 am
by Mr_Noodle
For now, you'll probably need to check if the custom date is blank and use date created which may require a separate rule.