Auto-printing and deleting

Discuss RoboTask here
Post Reply
stevefromdodge
Posts: 30
Joined: Tue Apr 05, 2011 3:39 pm

Auto-printing and deleting

Post 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?
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Auto-printing and deleting

Post 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
stevefromdodge
Posts: 30
Joined: Tue Apr 05, 2011 3:39 pm

Auto-printing and deleting

Post 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?
Post Reply