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 Friday, June 14, 2024

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

MacBook Pro automatically turns on when the lid opened

How to Stop MacBook Auto-Boot on Lid Open [M1/M2/M3]

About how to stop MacBook Pro from automatically turning on when the lid is open or connect it to the power. Fix MacBook Pro turns on by itself.

How to Tips

resolver O volume não é compatível com esta atualização no Mac

O Volume Não é Compatível Com Esta Atualização|Corrija no Mac

Esta postagem orienta você a conhecer todos os detalhes sobre a janela pop-up 'O volume não é compatível com esta atualização' no Mac e solucionar com métodos eficazes para instalar o novo macOS com sucesso.

recuperacion de datos mac

MacBook Air M1 VS M2

MacBook Air M1 VS M2: The Details You Should Know!

If you wonder if MacBook Air M1 or MacBook Air M2 is better, you have come to the right place. This post guides you to find the final answer so that you can pick the optimum one for your business.

News Tips