![]() However that also makes pressing ⌦ move a file to the trash when you are renaming a file. Īs for making ⌦ (Mac forward delete / Windows delete) move files to the trash, you can modify Finder's property list: defaults write NSUserKeyEquivalents -dict 'Move to Trash' '\U007F' The format used for the shortcut strings is described in. ⇧⌫ would be $ (where ⌫ is Mac delete / Windows backspace). ![]() Notes: on many Mac keyboards, the backspace key is called delete. Select a file or files and choose File > Move to Trash from the menu bar. Select a file or files and use the keyboard shortcut: command-backspace. $ is ⇧⌦ (where ⌦ is Mac forward delete / Windows delete). Control-click on a file and select Move to Trash from the menu. The shortcut recorders don't allow entering ⇧⌦ as a keyboard shortcut, but you can first give the service some temporary shortcut, then close the System Preferences window, then run something like f=~/Library/Preferences/pbs.plist plutil -convert xml1 $f open -e $f, and then change the key equivalent to $ : (null) - Delete Immediately - runWorkflowAsService You can give the service a keyboard shortcut from System Preferences > Keyboard > Keyboard Shortcuts > Services. The service cannot be used to delete a file if deleting it would require superuser privileges. Rm -rf didn't use an Ask for Confirmation action, because it can't be used to display the paths specified as arguments, and the dialogs shown by it don't get keyboard focus. ![]() You could also create a service like this:ĭisplay dialog "Delete the following files immediately?" & linefeed & linefeed & text items of argv srm uses the 35-pass Gutmann algorithm by default, but -s only overwrites files with a single pass of random data. If you want to delete the files securely so that they cannot be recovered with an application like DiskWarrior or DataRescue, you can use srm -srf. The easiest way of trashing a file in the Finder or a picture in Photos is to select it and press Command-Delete. If you want to delete files immediately, you can copy the files, open Terminal or iTerm, type rm -r and press ⌘V. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |