Hi would like to add a "Are you sure?" prompt when deleting an item (file, folder) from the finder (like the one when emptying the trash...).
Can this be enabled?
You may configure a folder action:
Enable view all files:
defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
Navigate to your user folder
- Right-click the usually invisible Trash folder and choose Services -> Folder Actions Setup...
- Add a new folder action by hitting the +-sign below the right pane and add the script "add - new item alert.scpt". You may change the script by hitting the button "Edit Script" (e.g. replacing the standard message by "Are you sure?"). If you want to keep the original file "add - new item alert.scpt" make a duplicate, rename it to an arbitrary name and modify it. The script resides in /Library/Scripts/Folder Action Scripts
- Hit the radio button "Enable Folder Actions".
Disable view all files:
defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder
In my Yosemite VM the folder action is slightly unresponsive and the alert occurs not until after 2-3 seconds.