Good morning to all. This is my first post, my name is Fabio and I am a web developer.
Here’s my question. I have a text file, downloaded automatically by Safari, which must be printed directly on a printer, via lpr.
I configured some folder actions on the safari’s ‘download’ folder: when the file is downloaded on the folder, i execute " lpr -P xxx filename.txt " then rename it to filename_1.txt then move it to a backup folder.
This works but I need more control on this process.
A friend of mine suggested us to study how launchtl works. Can I bind to some folder-specific event and get the same job by using it? What AppleScript do I have to write to achieve my goal?
Thanks for your help.