macOS

Skip the Trash — Delete Right Away

Lets create an Automator app that will skip the Trash and delete files immediately, from the GUI.

Automator

1) Open Automator and choose Application and click Choose.

2) On the left panel, click on Utilities and locate the Run Shell Script action. Drag it to the right side panel.

Screen1

3) Now delete the "cat" example command cut the script below and paste it there.

#!/bin/sh
for i in "$@"
do
rm -rf "${i}"
done

4) On the upper right corner change from to stdin to as argument.

Screen1

5) Now let's create the app, click on File > Save. Type a name for the application and save it on the Desktop.

6) Add an icon to that application.

I picked this one:

Screen1

7) Open the image using Preview and press CMD+A to select the entire image. Now press CMD+C to copy it.

8) Select the newly create app and press CMD+I to bring the Info panel up. Click on the little icon on the top left corner and press CMD+V to paste the icon into the app.

Screen1

9) You can now move the newly created app to the /Applications folder then drag it to the Dock for easy access.

That's it!

Now everything you drop on top of this app will be immediately deleted!

 

© 2019 Mteam7 - All rights lorem ipsum dolor sit amet, consectetur adipiscing elit.*