440Forums.com  |  MacMusic.org  |  PcMusic.org  |  Zicos.com  |  AudioLexic.org
account   {key13}


Automatically disable unused accounts in Mail

MacOsxHints

Wednesday April 2, 2008. 04:30 PM
MacOsxHints

I use two email accounts, a personal Gmail (IMAP) account, and a work mail account (also IMAP). I can only access my work email from within my work network, as the server is not on the internet. So I whipped up the following AppleScript and Launch Agent to automatically disable my work account when I'm not at work.Here's the AppleScript:set run_result to (do shell script "ps ax|grep Mail.app|grep -v grep; echo -n")if run_result = "-n" thenelse set run_time to (do shell script "ps ax|grep Mail.app|grep -v grep|awk '{ print $4; }'") if run_time < "0:05.00" then tell application "Mail" try set ping_result to (do shell script "ping -c 1 -t 1 work-server") set enabled of account "Work" to true ...
email accounts personal Gmail (IMAP) account work mail account (also IMAP). Automatically disable unused accounts Mail
Automatically disable unused accounts in Mail Read more at MacOsxHints
feeds.macosxhints.com/~r/macosxhints/recent/~3/262697212/article.php

 

 Related News 
Reluctantly Switching from Eudora to Apple Mail Reluctantly Switching from Eudora to Apple Mail
 TidBITS 04/13/08 07 PM 
Configure Mail to Prevent iCal Spam Configure Mail to Prevent iCal Spam
 TidBITS 04/11/08 02 AM 
Fix new message counts with Gmail IMAP and Mail Fix new message counts with Gmail IMAP and Mail
 MacOsxHints 04/10/08 04 PM 
Review: GyazMail 1.5 e-mail software Review: GyazMail 1.5 e-mail software
 Macworld Reviews 04/09/08 03 PM 
10.5: Avoid an unread message count issue in Mail 10.5: Avoid an unread message count issue in Mail
 MacOsxHints 04/07/08 04 PM 
Magic Mail Folder 1.0b5 Turns Any Folder On Desktop Into An E... Magic Mail Folder 1.0b5 Turns Any Folder On Desktop Into An E...
 AppleLinks 04/07/08 08 AM 
Automatically eject/mount disks on sleep/wake Automatically eject/mount disks on sleep/wake
 MacOsxHints 04/04/08 04 PM 
ATPM 14.04 - E-Mail ATPM 14.04 - E-Mail
 ATPM 04/03/08 05 PM 
10.5: Change the Apple Mail To Do mailbox name 10.5: Change the Apple Mail To Do mailbox name
 MacOsxHints 04/03/08 04 PM 
Review: Yahoo Mail Review: Yahoo Mail
 Macworld Reviews 04/03/08 01 PM 
Mail.app only printing message headers -- fix Mail.app only printing message headers -- fix
 MacFixIt 04/02/08 07 PM 
Quick Tip of the Week: Enjoying RSS in Mail Quick Tip of the Week: Enjoying RSS in Mail
 Apple HotNews 04/02/08 07 PM 
Truly disable QuickMenu feature in Norton Anti Virus Truly disable QuickMenu feature in Norton Anti Virus
 MacOsxHints 04/02/08 01 PM 
Mom’s Mail 0.5b Simple Email App. Mom’s Mail 0.5b Simple Email App.
 AppleLinks 04/02/08 07 AM 
Outspring Mail 1.0.1 New Email Client For Small Business Outspring Mail 1.0.1 New Email Client For Small Business
 AppleLinks 04/02/08 07 AM 
10.5: Disable the X11 quit confirmation in Leopard 10.5: Disable the X11 quit confirmation in Leopard
 MacOsxHints 04/01/08 07 PM 
Disable virtual memory for a speed boost Disable virtual memory for a speed boost
 MacOsxHints 04/01/08 04 PM 
Disable automatic running of downloaded programs Disable automatic running of downloaded programs
 MacOsxHints 04/01/08 04 PM 
Outspring Inc. announces Outspring Mail Outspring Inc. announces Outspring Mail
 Mac Minute 03/31/08 09 PM 
Outspring Mail for Mac released; email client with a ?brain? Outspring Mail for Mac released; email client with a ?brain?
 Mac Daily News 03/31/08 09 PM 
Outspring introduces new Mail application Outspring introduces new Mail application
 Mac Megasite 03/31/08 05 PM 

Search

Mac Zicos
Mon July 7, 03:13 AM
account   {key13}