I ran a batch rename of all files named index.html to index.php with Automator – I meant to run it on a specific folder and instead ran it on my whole computer. I can't undo the changes as far as I know (no time machine backup either). Does automator have a log of the files that were changed?
MacOS – Does Automator keep a log of all changed files
automatorfinderlogsmacmacos
Related Question
- MacOS – Recover certain files from Time machine from previous Mac
- MacOS – How to stop Time Machine backing up log files inside application containers
- MacOS – Transmit Automator Actions Not Loading
- MacOS – Time Machine wants to backup all files after permission change — how to avoid
- MacOS – What’s expected Time Machine behavior for large folders with few changed files
- MacOS – How to continue Time Machine backups from a previous computer
Best Answer
Automator doesn't keep a log file, if you didn't include some logging routine in the action itself.
You should be able to find all falsely renamed index.html files by checking the modify date of superior folders: search for all files with the name index.php and check if the modify date of the superior folder is the same as the execution date of the Automator action. If the modify date is the same, the file (not located at the "specific" folder) was renamed unintentionally. If the modify date of the superior folder is earlier than the Automator action execution date the file wasn't renamed.
To get all folders containing a file index.php quickly, enter:
To get a list of folders sorted by modify date with
ls
use something like this:The last command doesn't work for paths containing spaces!