In Apple, you need to use CMD+Del key combin to move files to Trash. if you are from the Windows background, this is not nice as when you use one hand to select the files using the mouse, you just want to press one single key to get rid of the files.
Here is what you can do:
1. get ‘Spark’ from http://www.shadowlab.org/Software/spark.php
It’s a free software so don’t forget to donate.
2. Install Spark and run it as demon so that it can intercept your keys and do the function.
3. Run Spark and click ‘Preferences’ from menu,
change
Allow "one key" shortcut for
from “Function keys only” to “All keys”
4. Double click on Apple Script,
press “delete” key for the short cut, give it a name, such as “Trash selected files". In the Apple script box, input the follow the script
Code:
| tell application "Finder" |
| if frontmost is false then return |
| set selectedList to the selection |
| set deleteList to {} |
| repeat with thisItem in selectedList |
| if class of thisItem is not disk then |
| set end of deleteList to thisItem |
| end if |
| end repeat |
| delete deleteList |
| end tell |
5. If you want to permanently delete selected files, which I don’t recommend, use the following Apple script
Code:
| tell application "Finder" |
| if frontmost is false then return |
| set selectedList to the selection |
| set deleteList to {} |
| repeat with thisItem in selectedList |
| if class of thisItem is not disk then |
| set end of deleteList to thisItem |
| end if |
| end repeat |
| delete deleteList |
| ignoring application responses -- because secure deletes can take a while |
| empty trash with security |
| end ignoring |
| end tell |