Sample Header Ad - 728x90

Shell script not finding file running in Mac OS X Catalina

0 votes
2 answers
1702 views
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.
Asked by beginner (1 rep)
Mar 20, 2020, 10:58 PM
Last activity: Mar 24, 2020, 05:21 PM