I have created a NASAL script that (tries) to write the coordinates of the aircraft when a screenshot is saved to a file. I get the error:
- Code: Select all
17.00 [ALRT]:nasal open(): reading/writing '/Users/gmoreno/Library/Application Support/FlightGear/gps.csv' denied (unauthorized directory - authorization no longer follows symlinks; to authorize reading additional directories, pass them to --allow-nasal-read)
I create the path to the file with the following code:
- Code: Select all
var gps_path = getprop("/sim/fg-home") ~ '/gps.csv';
I have tried other directories, and I have tried using the --allow-nasal-read command line option but still doesn't work. This is on macOS, and the NASAL code is in an aircraft.
So, I'm wondering if it is possible to write to a file from NASAL in FG? If so, how should I do it?
Thanks!