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.
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
You may need to run Hide File Extension once from Finder’s Quick Actions context menu before the keyboard shortcut will work.