how to see when a name was changed

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

Moderator: Mr_Noodle

how to see when a name was changed Wed Jan 29, 2025 4:16 pm • by pumasalad
I have an app that writes out a file, and if the file already exists, it renames the existing file with a suffix.

does anyone know a way to test if the file has been renamed in the last day so it can be moved to the trash? When I use "date added" it refers back to the date the file was originally made, when I use date modified, it doesn't pay attention to the file being renamed.

I'd like for the renamed original file to go away after some period of time, but I can't seem to figure out a way to make that happen.
pumasalad
 
Posts: 9
Joined: Sat Oct 19, 2019 6:18 pm

Re: how to see when a name was changed Thu Jan 30, 2025 9:39 am • by Mr_Noodle
To be clear, say a file named "blah" exists, and your app writes out, "blah 1" (or something like that). You want "blah" to be thrown away?

You might be able to do that using a nested condition. Look it up in the manual. You can set a condition to match another file in the same folder. You would probably need to use some sort of pattern match to see if there exists another file but with a suffix.
Mr_Noodle
Site Admin
 
Posts: 11865
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support