Skip to content

Instantly share code, notes, and snippets.

@stek29
Created May 31, 2018 05:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stek29/813a1399d2811783b6cb060d6d4222fa to your computer and use it in GitHub Desktop.
Save stek29/813a1399d2811783b6cb060d6d4222fa to your computer and use it in GitHub Desktop.
set scnds to (time of (current date))
set timeOfDay to item ((scnds div 21600 as integer) + 1) of {"night", "morning", "afternoon", "evening"}
set userName to (item 1 of (words of (long user name of (system info))))
say "Good " & timeOfDay & ", " & userName & "." using "Alex" speaking rate 170 modulation 70 pitch 39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment