tell me to set theResult to (do shell script "fgrep " & search's quoted form & space & MeterReadingsCSV) -- extract string
Now I am getting this error:
tell current application
do shell script “fgrep ‘2020 Sep 24’ /Volumes/config/www/MeterReadings.csv”
→ error “The command exited with a non-zero status.” number 1
The network share is accessible and the file is present.
The fgrep man page notes the following exit status values:
0 One or more lines were selected.
1 No lines were selected.
1 An error occurred.
So, my suggestion is that the OP look at the MeterReadings.csv file to insure it contains the search text. I did test the code contained in the OP’s post and it worked fine for me.