Created
September 1, 2017 02:35
-
-
Save bdcravens/a772e1332b3356fc6266779962e74399 to your computer and use it in GitHub Desktop.
apple script to pull eth price
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
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