I know it’s an odd one but I’ve got a new (and my first) OS9 machine and I’m currently exploring its Applescript capabilities, and if I could translate some of my most useful scripts for it. It’s of course tricky to go back as I only started learning Applescript some years ago, and it’s impossible to imagine which parts didn’t exist back in the OS9 days.
JSON format was invented in the early 2000s so I’m imagining that there’s a 50/50 chance that it could be handled somehow, as it’s got to do with html.
Compiling the message I’m trying to send seems to be fine. But in OS X, I’m used to passing on the actual commands with shell script, and OS 9 doesn’t know what shell script is. Are there any other alternatives to handling this?
The gist of it, approximately:
set theSetting to "some stuff that's being sent"
set theDestination to "some address where stuff is being sent"
do shell script "curl --request PUT --data " & theSetting & " " & theDestination
Operating System: Mac OS 9.2.x