Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Activate Mail automatically on new message received Apps
I've used this hint to push my email into Mail.app automatically. But I wanted to take it even further, and have Mail activate (make itself the active application) when a new message arrived. Here's how I did that. First I used Terminal to create a compile a simple AppleScript, and named it .push (so it's hidden in the Finder). Copy and paste this line into Terminal, and the file will be created in your user's home directory: Next, in Mail, create a new rule set to run on "any" of the following conditions. For the condition, set the pop-up to Every Message. In the actions section, set the first pop-up to Run AppleScript, and for the name of the AppleScript (assuming you used the above command in Terminal), enter ~/.push. Now hide Mail, login to some web-based mail service, and send yourself an email. If you've followed the linked hint, your server should immediately push this new messag into your Mail.app. When that happens, the rule you created will run, and that should cause Mail.app to come to the foreground.

The only caveat is that if you're editing something, or if you're used to hitting delete for going back in your browser, then you might accidentally trash your message! I have been using this for a while, though, and I'm now used to it. For first couple of weeks, however, I had to recover the trashed messages manually.

[robg adds: I tried this, and it works as described (though I receive too much email to leave this rule in place!). You can test it before you create the rule by hiding Mail, then typing this (in your home directory) in Terminal: osascript .push. Mail should unhide and come to the foreground when you press Return.]
    •    
  • Currently 1.20 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (5 votes cast)
 
[7,975 views]  

Activate Mail automatically on new message received | 0 comments | Create New Account
Click here to return to the 'Activate Mail automatically on new message received' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.