How can I set up a keyboard shortcut to hide the file extension of each selected file in Finder?
For example, if ⇧⌘E were such a shortcut, I could conveniently press ⌘A to select all files in the folder and then ⇧⌘E to hide their extensions.
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
Create a workflow to hide the selected files. Then assign a keyboard shortcut to the workflow.
tell application "Finder" repeat with theFile in (selection as alias list) set extension hidden of theFile to true end repeat end tell
You may need to run Hide File Extension once from Finder’s Quick Actions context menu before the keyboard shortcut will work.