There’s no denying that on OS X,
Letters
Easily one of the most useful apps for downloading, reading, and working with your email on a daily basis. However, no matter how useful you may consider the native mail client, you can actually do so much more with it just by knowing a few tricks, which is exactly what we will show you. in this post.
Ready? Let’s go.
Put your Mac to sleep with an email
This is a really cool trick that requires a bit of advanced tinkering and creating your own Apple scripts (but don’t worry, we’ll explain everything here), but once it’s set up you can put your Mac to sleep by simply sending yourself an email from one of your accounts.
This can be very helpful for those of us who tend to forget things, such as putting our Macs to sleep when we leave the office.
Here’s how to set up this neat trick.
Step 1: Open the AppleScript Editor utility (located in utilities folder) and then copy and paste this in the editor:
tell the app “System Events” to go to sleep
When you’re done, press the . button translate until everything looks like the screen below.
Finally, give your script a name and save it with the format ‘Script’.
You will have to save the script in the folder shown in the image below (~Library/Application Scripts/com.apple.mail) for it to work.
Step 2: Open Mail’s Preferences panel and click Rule navigation. There, click More rules button and set these parameters:
Condition
Perform the following actions:
– Run Apple Script: Select the script just created
Once done, press ALRIGHT.
With this, every time you send an email to yourself (from the specified email account) with the word ‘Sleep’ as the subject, Mail will fire the script you created and put your Mac to sleep.
If you have an iPhone, send yourself an email from there and you’ll see your Mac go to sleep in no time. Pretty neat if you ask me.
Disable attachment image preview
For me, one of the best aspects of the native OS X Mail app is that if someone sends you an email attachment, Mail lets you view the file right in the message by displaying a live preview. of that file. So be it a PDF file, an Office document, or just a photo, you don’t even need to click on it to view it.
However, in some cases, it’s better that Mail doesn’t show previews of attachments. For example, let’s say you’re checking your email in a public place and you don’t want anyone else to see your files.
However, with the help of the Terminal utility, you can turn off visual preview on Mail in just a few seconds.
To do that, just open Terminal and enter this command:
default says com.apple.mail DisableInlineAttachmentViewing -bool yes
Then, restart Mail and instead of visual previewing the attachments, Mail will just show their icons.
If you ever want to go back to viewing Mail attachments, just use the same command shown above, but end up replacing ‘yes’ for ‘no’. That’s it.
Hope you enjoy these tips. Both are extremely helpful and especially the first one is really great. Enjoy!
Categories: How to
Source: thpttranhungdao.edu.vn/en/