Skip to main content
4 of 4
Commonmark migration

Applescript

A silly, hacky mash-up that might upset some Cupertino/Mountain View folks, but I think its a creative silly, hacky mash-up.

set myNumber to text returned of (display dialog ¬ "Enter number as text:" buttons {"Continue…"} ¬ default answer "" default button 1) tell application "Google Chrome" activate open location "https://www.google.com" end tell delay 5 say "ok google. " & myNumber delay 2 tell application "System Events" tell application process "Google Chrome" set fullURL to value of text field 1 of toolbar 1 of window 1 end tell end tell set AppleScript's text item delimiters to "=" display alert item 2 of text items of fullURL 

Uses OSX text to speech to speak the text number, and google audio search to listen for it and convert it to an integer.

Requirements

  • OSX
  • Google chrome
  • speech-recognition enabled in your google account
  • volume turned up to a reasonable level

The delay timings may need to be adjusted depending on your chrome load time and google lookup time.

Example input:

enter image description here

Example output:

enter image description here

Digital Trauma
  • 73.8k
  • 10
  • 117
  • 268