How can I get AppleScript to run this query and save each value (country, city, etc.) as an AppleScript variable?
I'm trying to get information about IP and domain and set the value of some variables.
I was not sure how to even run the query from AppleScript so I used
do shell script to call
set IPAddress to "188.8.131.52" set link to "http://ip-api.com/json/" & IPAddress & "?fields=country,city,isp,org,as,mobile,proxy,message" set curl_command to "curl " & link do shell script curl_command
The result is JSON formatted text. Is AppleScript's text delimiter the only option for parsing the result?