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="Emeraldscorpion" data-source="post: 915120" data-attributes="member: 123514"><p>well, i'm not sure about editing it, but here's a script I made:</p><p>[CODE]tell application "System Events" to set iCalIsRunning to (name of processes) contains "Mail"</p><p>set finalText to ""</p><p>if iCalIsRunning then</p><p> tell application "Mail"</p><p> set unreadCount to unread count of inbox</p><p> if (unreadCount is greater than or equal to 1) then</p><p> return (unreadCount as string) & " new messages"</p><p> else</p><p> set finalText to "No new Mail"</p><p> end if</p><p> end tell</p><p> </p><p>else</p><p> set finalText to "Mail not open"</p><p>end if[/CODE]</p><p>Hope this helps!</p></blockquote><p></p>
[QUOTE="Emeraldscorpion, post: 915120, member: 123514"] well, i'm not sure about editing it, but here's a script I made: [CODE]tell application "System Events" to set iCalIsRunning to (name of processes) contains "Mail" set finalText to "" if iCalIsRunning then tell application "Mail" set unreadCount to unread count of inbox if (unreadCount is greater than or equal to 1) then return (unreadCount as string) & " new messages" else set finalText to "No new Mail" end if end tell else set finalText to "Mail not open" end if[/CODE] Hope this helps! [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
Geektool script forces mail to stay open
Top