How to Put Mac To Sleep Using an Email and Dis­able Mail Previews – Guide

Mail on OS X is an incredibly useful tool for managing your emails. But with a few tricks, you can unlock even more features and make the most of it.

It’s time to get started - let’s go!

Put your Mac to sleep with an email

Send yourself an email to make your Mac fall asleep with a few advanced tweaks and an Apple script. Here’s how to do it.

Forgetful folks, take note: putting your Mac to sleep when you leave the office can be a breeze.

This article outlines a simple technique for achieving a desired result.

AppleScript Editor can be opened from the Utilities folder to copy and paste code.

The “System Events” app can be put to sleep with a simple command.

Press the Build button until the screen matches the example.

Name your script and save it as a “Script” file.

Save the script in the Library/Application Scripts/com.apple.mail folder to make it work.

Create a new rule in Mail Preferences: click the Rules tab, then the Add Rule button. Set parameters accordingly.

A new email with the subject line “Sleep” has been sent to all addresses containing your email address.

A new study has found that taking certain steps can help reduce the risk of developing type 2 diabetes. These steps include eating a healthy diet, exercising regularly, and maintaining a healthy weight.

Apple Script can be used to run a script you’ve created, allowing you to automate tasks.

Press OK to complete the task.

Send an email with the subject ‘Sleep’ from your specified account and your Mac will automatically go to sleep, thanks to a script you created.

Send an email from your iPhone and watch your Mac go into standby mode instantly – a neat trick!

Disable visual attachment views

OS X Mail’s convenient preview feature allows users to view attachments without having to open them. From PDFs and Office documents to photos, the native application provides a quick and easy way to view files sent in emails.

In certain situations, it’s best to keep attached files private. For instance, if you’re in a public area and don’t want others to view your documents, Mail should be set not to show previews.

Terminal makes it easy to quickly disable views in Mail, allowing users to customize their experience.

The Terminal can be opened and a command typed to complete a task.

Apple’s Mail app now allows users to disable inline attachment viewing, according to a new pattern write command.

Mail will now only display icons for attachments, instead of visual representations.

To view attachments in Mail again, simply use the command shown above, but replace ‘yes’ with ’no’.

Try out these two tips for a more efficient workflow: the first is a great time-saver, while the second can help you stay organized.

Final note

This guide provides instructions on how to put a Mac to sleep using an email and disable mail previews. If you have any questions, please reach out for help. Share the article with your friends to show your support.