Home > Questions

What IS the Shortcut for Renaming File by Its Creation Date

Hey, I'm looking for a shortcut, which renames a file by its creation date on Mac. It is time-wasting to copy the date from the file information and put to the file name. Does anybody know the shortcut?

Best Answered by

iBoysoft author Connie Yang

Connie Yang

Answered on Monday, July 10, 2023

There's no shortcut to rename a file by its creation date on Mac.

To rename a file on Mac by its creation date, you have to run the command in the Terminal and use it to create an Automator workflow to do so. Actually, it is time-wasting to add dates to a file with an Automator Script as below:

for f in "$@" 
do 
filedate=$(date -r $(stat -f %B $f) +%Y-%m-%d); 
filename=$f:t 
filepath=$f:h 
mv $filepath/{"$filename","$filedate $filename"} 
done

If you want to check your files by their creation dates, simply open Finder and move to the top Finder menu bar. Click on "View" and check "as List" on the dropdown menu, and then click on "Show View Options", and under the "Show Columns" section, check the box next to "Date Created". This is far simple and easy for you.

People Also Ask

Read More Questions

Read More Advice From iBoysoft's Computer Experts

deleting files doesnt free up space on Mac

Deleting Files Doesn't Free Up Space on Mac, Why & Fixes 2022

Follow this post to learn why deleting files doesn’t free up space on Mac and fix it with quick solutions. Ways to increase the free space on Mac.

How to Tips

Discord beim Aktualisieren auf dem Mac hängen geblieben

Behebungen für Discord, das auf dem Mac beim Überprüfen von Updates hängen bleibt

Dieser Beitrag bietet effektive Methoden zur Behebung des Problems, dass Discord beim Überprüfen von Updates auf dem Mac hängen bleibt.

não é possível criar uma nova pasta em disco rígido externo no Mac

Correção: impossibilidade de criar novas pastas em um disco externo no Mac

Guia para resolver o problema de não conseguir criar uma nova pasta em um disco rígido externo no Mac e explicar as razões.