Archive old versions of a duplicated file

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Archive old versions of a duplicated file Fri Dec 29, 2023 3:16 pm • by mclnelson
I am struggling with something I suspect is well-documented, but I can't find it.
I have a folder that contains project files for multiple projects. When a file is revised, it's duplicated, and the file name is appended with a version number.

Examples:
- Project#.ProjectA.Name v1
- Project#.ProjectA.Name v2

- Project#.ProjectB.Name v1
or
- Project.NameC.Project# v1
- Project.NameC.Project# v2
- Project.NameC.Project# v3

I want an action to read the file name to understand that it's the same project and move the earlier version to an archive folder.

***
Referencing Match Patterns in the user guide, I think the answer is likely there, but I can't solve it.

I would send a screenshot of the action, but I can't figure out how to do that either.
I have:

If all of the following conditions are met
Kind is Document
- If all of the following conditions are met for any file or folder in the same folder
- Name matches [ab12][...] (tokens / blue bubbles)
- Date created | is not among the |1| most recent

Do the following to the matched file or folder:
Move to folder: **Archive**

***

Any thoughts?
mclnelson
 
Posts: 1
Joined: Fri Dec 29, 2023 11:34 am

Re: Archive old versions of a duplicated file Tue Jan 02, 2024 10:42 am • by Mr_Noodle
I don't think you want the nested condition here. Just having the two conditions at the top level should be fine.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support