pkamb / PowerKey

Remap your Macbook's power key to Forward Delete
MIT License
229 stars 29 forks source link

Eject-Key to Command+Backspace (Delete) #65

Closed danz54 closed 7 years ago

danz54 commented 7 years ago

Hi, is there a way to map the Eject-Key to Command+Backspace (Delete)? I would like to have one key to trash my files instead of pressing command+delete... Thanks =)

pkamb commented 7 years ago

Hello, I think this would work best as an Apple Script launched via PowerKey.

http://macscripter.net/viewtopic.php?id=31585

so something like:

tell application "Finder" to empty trash with security