Closed AngryKiller closed 6 years ago
How would you use this new API? It's not clear how it solves the problem?
applescript-json
needs to be compiled to run correctly, if you just execute the code, there will be errors.
That is contradictive to its readme:
Alternatively, just copy/paste the contents of json.applescript into your own script, and use it straight away.
Yeah, but then, if you run your script with the content of json.applescript pasted with the -e parameter, you will get errors and it will not work ;)
Oh, and it can also be used to run scripts that are already compiled.
Hi, do you need anything else to merge?
Ok, I understand now. I was confused by your incorrect use of parameter names. Without -e
it's actually a file path, not a script. The methods should be named .file()
and .fileSync()
and needs some tests too.
Useful for support with scripts using libs like applescript-json.