Skip to content

Instantly share code, notes, and snippets.

@bdcravens
Created September 1, 2017 02:35
Show Gist options
  • Save bdcravens/a772e1332b3356fc6266779962e74399 to your computer and use it in GitHub Desktop.
Save bdcravens/a772e1332b3356fc6266779962e74399 to your computer and use it in GitHub Desktop.
apple script to pull eth price
set json to (do shell script "curl https://www.bitstamp.net/api/v2/ticker/ethusd")
tell application "JSON Helper"
set result to read JSON from json
set price to |last| of result as number
end tell
set result_string to "$" & price & ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment