Trying to make a Folder Action to open files, then Watch Me Do

This my first foray into Automator, and it’s driving me nuts.

I have a bunch of files that I want to use the Save as PDF… command with. I have made it so that command-p twice activates the “Save as PDF…” command, and that works fine by itself.

I have currently in my workflow:

Open Finder Items (with Default Application)

Watch Me Do
Press command-P
Press command-P
Press command-S
Press command-W
Press command-D

This ideally would open the file, then press command-p to open the print dialogue, then command-p again to open the Save as PDF… dialogue, then command-S to save, then command-W to close, then command-D to Don’t Save.

I cannot figure out how to make the Watch Me Do stuff happen in whatever program opened up the file I dropped into the folder, be it Pages or Open Office or whatever.

Much appreciation in advance to anyone wiling to help me. This would be such a handy folder to have around working for me!