Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Apps and Programs
Geektool script forces mail to stay open
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="jmullenberg" data-source="post: 856947" data-attributes="member: 54519"><p>I am running a script in geektool to display my current number of unread mail messages on my desktop. I found this script on a website somewhere: </p><p></p><p>echo 'tell application "Mail" to return unread count of mailboxes of accounts' | osascript | perl -e "@a=split ',',<STDIN>; foreach (@a) {\$n += \$_}; print \"\$n\n\";"</p><p></p><p>The problem is that every time it updates it forces mail to open, which is causing problems when shutting down, and also sometimes i just dont want mail to be open.</p><p></p><p>Is there a way to modify this script so that it checks to see if mail is already open, and if it isnt end the script?</p></blockquote><p></p>
[QUOTE="jmullenberg, post: 856947, member: 54519"] I am running a script in geektool to display my current number of unread mail messages on my desktop. I found this script on a website somewhere: echo 'tell application "Mail" to return unread count of mailboxes of accounts' | osascript | perl -e "@a=split ',',<STDIN>; foreach (@a) {\$n += \$_}; print \"\$n\n\";" The problem is that every time it updates it forces mail to open, which is causing problems when shutting down, and also sometimes i just dont want mail to be open. Is there a way to modify this script so that it checks to see if mail is already open, and if it isnt end the script? [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
Geektool script forces mail to stay open
Top