

- #MAC EMPTY TRASH COMMAND LINE 10.13 HOW TO#
- #MAC EMPTY TRASH COMMAND LINE 10.13 FULL#
- #MAC EMPTY TRASH COMMAND LINE 10.13 PASSWORD#
- #MAC EMPTY TRASH COMMAND LINE 10.13 MAC#
Has this easy-to-make Automator action helped with your Mail slowdowns? Let us know in the comments below.Under usual circumstances, getting rid of the deleted files in your Mac should be a piece of cake. If Mail is running, it will quit, the script will run, and Mail will re-open with a rebuilt database behind the scenes which should lead to improved performance. To run your new workflow, just open it with Automator and click the Run button in the upper right corner of the script's window. In the sheet that appears, give your workflow a name, and pick a place to save your new Automator script. The script is now complete, but you'll need to save it. For Catalina (10.15): sqlite3 ~/Library/Mail/V7/MailData/Envelope\ Index vacuum Ĭlear the search field above the list of actions and type the word launch.ĭrag and drop the action named Launch Application to the right side of the window beneath the Run Shell Script action.įrom the pop-up menu in the Launch Application action, choose Mail.For Mojave (10.14): sqlite3 ~/Library/Mail/V6/MailData/Envelope\ Index vacuum.For High Sierra (10.13): sqlite3 ~/Library/Mail/V5/MailData/Envelope\ Index vacuum.For Sierra (10.12): sqlite3 ~/Library/Mail/V4/MailData/Envelope\ Index vacuum.For El Capitan (10.11): sqlite3 ~/Library/Mail/V3/MailData/Envelope\ Index vacuum.For Lion (10.7), Mountain Lion (10.8), Mavericks (10.9), or Yosemite (10.10): sqlite3 ~/Library/Mail/V2/MailData/Envelope\ Index vacuum.For Snow Leopard (10.6): sqlite3 ~/Library/Mail/Envelope Index vacuum.Don't forget the semi-colon at the end of the line.

In the empty field in the middle of the Run Shell Script action, copy and paste the command below that corresponds to the version of macOS that is running on your Mac. Drag and drop the action named Run Shell Script beneath the Quit Application action.From the pop-up menu in the Quit Application action, choose Mail.Ĭlear the search field above the list of actions and type the word run.In the search field type the word quit.ĭrag and drop the action named Quit Application to the right side of the window.As a first step, we want to quit the Mail app if it is open to make sure Mail's database does not change while we are cleaning it up. To build our Automator script, we will drag actions from the left side of the window to the right side. In the sheet that appears, click Workflow.Īn empty Automator document will open.In the window that appears, click New Document. In the Applications window that appears, locate the Automator app and double-click it to open it.Its icon looks like a robot refugee from Earth, circa 2805. Open the Automator app which is located in your Mac's Applications folder. In the list that appears on the right side of the Privacy window, check the box for Automator.Ĭlick the lock to prevent further changes.
#MAC EMPTY TRASH COMMAND LINE 10.13 PASSWORD#
When prompted, enter the user name and password you use to log in to your Mac. If the preference pane is locked, click the lock to make changes. Here's how:įrom the Apple menu, choose System Preferences.
#MAC EMPTY TRASH COMMAND LINE 10.13 FULL#
To make this Automator script work properly with macOS Mojave or macOS Catalina, you'll need to enable Full Disk Access for Automator.

Enabling Full Disk access for an application grants that app the ability to fiddle with data from other apps. Normally applications do not have the ability to access all the files on your Mac, including data from other apps. One of Apple's more recent security features is called Full Disk Access, introduced with macOS 10.14 Mojave.
#MAC EMPTY TRASH COMMAND LINE 10.13 HOW TO#
And you don't have to know how to write a script, use the command line, or even understand how the vacuum tool works.Īpple has been improving the security of macOS every year. But thanks to the wonder of Automator, an app that ships with your Mac, you can create a simple three-step script that will run the vacuum tool. Normally, the vacuum command is accessible only through the Mac's command-line interface using an app such as Terminal. The vacuum command eliminates gaps, defragments the data, and cleans up the database file structure. The vacuum command copies the contents of your mail database to a temporary file and rebuilds it so that it uses less space on your disk. There's a built-in tool on your Mac called vacuum that you can use to clean up the database that stores all of your emails. Lucky for all of us, there's a solution to the slowdown. That's fine, too, but over time it still may slow the Mail app down. Still, some of us accumulate email that is valuable and merits keeping.
