Skip to content

Instantly share code, notes, and snippets.

@spangenberg
Created February 10, 2011 15:17
Show Gist options
  • Select an option

  • Save spangenberg/820682 to your computer and use it in GitHub Desktop.

Select an option

Save spangenberg/820682 to your computer and use it in GitHub Desktop.
J.A.R.V.I.S.
say "yes sir"
tell application "Dragon Dictate"
activate
set microphone to dictation
try
display dialog "Speech Text" default answer ""
on error
set microphone to command operation
return
end try
end tell
set myCommand to text returned of result
if "cancel" is in myCommand then
tell application "Dragon Dictate"
set microphone to command operation
end tell
return
end if
tell application "Terminal"
do script "jarvis_client \"" & myCommand & "\""
end tell
tell application "Dragon Dictate"
set microphone to command operation
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment