By appending the say command to the end of another command, Mac OS X will vocally announce when the initial task has finished running successfully. For example, to have OS X announce that a particular script has finished running the command could be:
python backup.py && say "jobs done"
The important part is the “&& say” portion, which can also be customized with other voices from Mac OS X’s text to speech options by using the -v flag followed by a voice name, like so:
dscacheutil -flushcache && say -v Alex your cache has been cleared sir
This is perfect for running scripts, making svn/git commits, compiling code, and other tasks that can take an indeterminate amount of time to complete and where it’s easy to become distracted by facebook^H^H^H^H^H^H^H^H other work.
This great tip was posted by @niels on Twitter, follow @osxdaily there too to get our latest posts and updates.
Follow Me:
Top Best Sellers!!