Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I want to print all files which are dragged to a folder. Easy to do with Automator.

But I want to specify more settings for the print, namely to print the items two times, to use paper tray 2 instead of 1 (standard); the file should be deleted afterwards (This would also be easy with Automator)

Is there a way to specify these special options? The process is all the time the same, so there should be no promt to ask me what options I want to choose; it should be a simple workflow: Drag files on folder, print with these settings.

Thanks for your help.

share|improve this question
    
Lemme see if I can do this... –  anon173 Apr 26 '12 at 18:47
    
Investigating a bit, I must admit I shortchanged you on my answer. lp / lpr are one way to achieve what you asked for, there is at least one other (mucking with the last set printer preset via defaults or Applescript). Pulling my answer, as it is correct as to the limitations of plain AppleScript / Automator, but not an answer to your question. –  kopischke May 24 '12 at 10:41

1 Answer 1

up vote 0 down vote accepted

I was not able to find a way to do this in Automator. My work around was as follows:

  • Use Automator to convert all documents to pdf
  • use CUPS to print from the terminal with non-standard settings, e.g.

    $ for i in *pdf; do lpr -o sides=two-sided-long-edge $i; done

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.