Open AngryKiller opened 6 years ago
I found this to encode JSON in AppleScript: https://github.com/mgax/applescript-json But I have an error only when I run the code with run-applescript:
Error: 881:882: syntax error: « then », etc. planned but unknown token found. (-2741)
The code is working fine in the script editor. (I added the code of applescript-json inside of my applescript file.)
My script is also not working when I run it from osascript -e. I'm gonna search how the Script Editor runs the scripts..
I FOUND THE PROBLEM!: My script works when I run it without the -e parameter in osascript!
PR welcome :)