Help me automate a workflow
April 13, 2012 6:35 AM Subscribe
Automator/macro/scripting help: Is there a way to automate a series of keystrokes, initiated by a command that I create? Running Mac OS 10.7.3.
posted by slogger to Computers & Internet (9 answers total) 1 user marked this as a favorite
I have several thousand PDFs that I need to grab a snippet of text from, then paste it into a single Word file. My current workflow goes as follows.
• Open PDFs files in blocks of 100
• Highlight desired text
• Copy text [Cmd-C]
• Switch applications to Word [Cmd-Tab]
• Paste text [Cmd-V]
• Switch applications back to Acrobat [Cmd-Tab]
• Close old PDF [Cmd-W]
• Repeat process on next document
What I would like to do is streamline this so I can execute all the keystrokes in a single command. So I would open my block of files, highlight my desired text and then hit a keyboard command that I assign (for instance, Cmd-Opt-E or whatever).
In this example, Cmd-Opt-E would then initiate [Cmd-C]+[Cmd-Tab]+[Cmd-V]+[Cmd-Tab]+[Cmd-W]. At the end of this, my selected text would be pasted into the Word doc, and the old PDF would be closed, with the new PDF awaiting me to select the text I need and initiate the sequence again.
I've tried figuring this out using Automator, but I can't seem to get it to switch applications, and create a key command to initiate my sequence.
I'm pretty Mac-savvy, but my technical skill is pretty limited when it comes to scripting or macros, and my coding is limited to very basic HTML at best.
So is it possible to set up a workflow like this? How?