diff options
author | Cody Hiar <codyfh@gmail.com> | 2017-04-20 19:37:10 -0600 |
---|---|---|
committer | Cody Hiar <codyfh@gmail.com> | 2017-04-20 19:37:10 -0600 |
commit | 2dd809781527976307b47a598887062047e202c9 (patch) | |
tree | 8b29daba2c1ef072f380ef530b7e7d9256e43eb3 /segments/mailcount_apple_mail.script | |
parent | baeb698bb006193559fc5aa1901180a3ccc73b7a (diff) |
Making tmux configuration much easier to manage
Diffstat (limited to 'segments/mailcount_apple_mail.script')
-rwxr-xr-x | segments/mailcount_apple_mail.script | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/segments/mailcount_apple_mail.script b/segments/mailcount_apple_mail.script deleted file mode 100755 index fca8acb..0000000 --- a/segments/mailcount_apple_mail.script +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env osascript -# Returns the number of unread mails in the INBOX of Apple Mail. - -tell application "System Events" - set process_list to (name of every process) -end tell - -if process_list contains "Mail" then - tell application "Mail" - if unread count of inbox > 0 then - set a to unread count of inbox - end if - end tell -end if |