Created
February 10, 2011 15:17
-
-
Save spangenberg/820682 to your computer and use it in GitHub Desktop.
J.A.R.V.I.S.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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