Page 1 of 1

Auto-printing and deleting

Posted: Fri Jun 10, 2011 4:05 pm
by stevefromdodge
I'm trying to create a task that automatically prints pdfs placed in a certain folder. After they have printed, I need to delete them, to insure they don't get printed multiple times.The difficulty I'm encountering is that the delete part of the task is firing before Acrobat Reader can open the file to print it. I've tried creating "subtasks" and using "wait until finish", but that's not helping. I think RoboTask considers the task finished when it passes the command to the OS.How can I make this work properly?A second problem that I need to deal with is notifications of failed print jobs. How can I manage that, if Acrobat is actually handling the printing?

Auto-printing and deleting

Posted: Sat Jun 11, 2011 7:37 am
by Oleg
Use "Wait for File" action. This action pauses the task and waits until the selected file will be available. After the monitored file is been available, the task is resumed. If the specified file is free at the moment when the action is being executed, the task don't wait.
Also see here, please

Printing of document is being in separate process and you should wait when the file will be free.

Your task will be so:

File loop
   Print Document
   Wait for File
   Delete file
end loop

Auto-printing and deleting

Posted: Thu Jun 16, 2011 3:49 pm
by stevefromdodge
Thanks Oleg that gets me a starting point.I want to print all files in the folder, but I won't know the file names ahead of time. How do I pass the file names into the loop?