Announce The Hour

In June I purchased my first MacBook Pro (I should really write about this sometime). One simple feature I really enjoy is that the machine will announce the time at the top of each hour. I don’t know why, I just really like that feature.

At work I am still on Microsoft Windows-based machines and wanted to have this same feature on them. So I did some digging around and found a VBScript that will do it. I added the code below to a sayhour.vbs file and set up as a scheduled task to run at the top of the hour. I have all my clocks showing 24 hour time so their is no need for AM or PM, which personally drives me batty anyway.

Spending so much time in PowerShell now I wanted to solve this same issue there. Again some looking around and digging in to the C# library SpeechSynthesizer I have a solution. This too will run from a scheduled task. The only part I have not been able to figure out is how to keep the cmd box to show when it runs. The below code is saved in a sayhour.ps1 file and set up as a schedule task to to run at the top of the hour.

The views expressed on this weblog are mine alone. In no way do they represent the views or opinions of my employer, my family and most anyone else, nor is it endorsed or approved by them in any way, shape or form. My opinions are my own.