Hoping for a suggestion. Using a shell script in Mac OS X Catalina which broke the script. I know there were many security changes but haven't so far figured out modification to access downloads folder. Script errors because it can't get to the file to print. Script is:
do shell script "cat `ls -t /UserName/Downloads/Barcodes*.zpl | head -1` | lpr -P BarcodePrinter -o raw " with administrator privileges
Tried several modifications for the location of the file. Downloads folder is still getting file with long name where
* would be variable for 20+ characters generated from the barcode file. Printer name still matches but error is:
No such file or directory lpr: No file in print request
ANY suggestions appreciated. Been searching forums but very much a novice and can't seem to pinpoint the right solution.