<?phpxml version="1.0" encoding="utf-8"?>
<rss version="2.0" 
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
>
<channel>
<title>Geeklets / kankei71 / All</title>
<link>http://www.macosxtips.co.uk/geeklets</link>
<description>Share and vote on Geeklets for GeekTool</description>
<pubDate>Sat, 12 Dec 2009 18:24:05 -0800</pubDate>
<language>en</language>
<item>
<title><![CDATA[Visual or audio unread email message]]></title>
<link>http://www.macosxtips.co.uk/geeklets/messaging/visual-or-audio-unread-email-message/</link>
<comments>http://www.macosxtips.co.uk/geeklets/messaging/visual-or-audio-unread-email-message/</comments>
<pubDate>Sat, 12 Dec 2009 19:24:05 -0800</pubDate>
<dc:creator>kankei71</dc:creator>
<category>Messaging</category>
<guid>http://www.macosxtips.co.uk/geeklets/messaging/visual-or-audio-unread-email-message/</guid>
<description><![CDATA[Here are two Applescripts that can be used with geektool. One will desplay a customizable message on the desktop. The other will make the computer "read" the message using the vocal synthesizer.<br><br>Store the script anywhere and use as Shell the osascript command followed by the path to your script --> "osascript /Users/YOU/PATH/SCRIPT/ (note that Mail.app has to be launched)<br><br><br />Visual :<br><br />*****************************************************************<br><br />tell application "System Events"<br />	if exists process "Mail" then<br />		try<br />			tell application "Mail"<br />				set unreadCount to unread count of inbox<br />				if (unreadCount is equal to 1) then<br />					set the_sender to get the sender of (messages of inbox whose read status is false) as string<br />					set name_senders to extract name from the_sender<br />					return "There is a new message from " & name_senders<br />					<br />				else<br />					<br />					if (unreadCount is greater than 1) then<br />						set the_sender to get the sender of (messages of inbox whose read status is false) as string<br />						set name_senders to extract name from the_sender<br />						return "There is " & (unreadCount as string) & " new messages"<br />					end if<br />				end if<br />			end tell<br />		end try<br />	end if<br />end tell<br><br />*****************************************************************<br><br><br />Audio :<br><br />*****************************************************************<br><br />tell application "System Events"<br />	if exists process "Mail" then<br />		try<br />			tell application "Mail"<br />				set unreadCount to unread count of inbox<br />				if unreadCount is equal to 1 then<br />					set the_sender to get the sender of (messages of inbox whose read status is false) as string<br />					set name_senders to extract name from the_sender<br />					say "you have a new mail from " & name_senders<br />					<br />				else<br />					<br />					if unreadCount is greater than 1 then<br />						say "you have " & unreadCount & " new mails "<br />					end if<br />				end if<br />			end tell<br />		end try<br />	end if<br />end tell<br><br />*****************************************************************<br /><br /><br/><br/>8 Vote(s) ]]></description>
</item>

</channel>
</rss>
