Hi,
I'm brand new and I'm about to embark on creating a very simple app to delete specific pages from PDF files. I'm going to list my high-level strategy below, and I'm looking for any recommendations on which methods I should review in the Help File, code snippets, and potential road blocks from more experienced AutoIt developers.
High Level Outline & Desired Behavior:
Prompt user to select a directory
Find all .pdf files in selected directory (not-recursively) and store in an array
List all .pdf files in the array and prompt user to confirm (proceed or abort)
Only if proceeding, launch Acrobat
For each file in the array, run a series of actions:
Open the file in Acrobat (Ctrl+O, type file name in dialog box, hit Open, wait for file to open)
Search file for a specific string (Ctrl+F to open search box, enter string to search, hit Enter)
If its not found, there's a prompt saying the string couldn't be found, identify the prompt, accept prompt, hit keystrokes to save file, close file, proceed to next file, step 5.1. If the prompt does not appear, Acrobat found the string, so use keystroke to delete page and repeat the search operation, step 5.2.
After all files in the array are processed, exit Acrobat and prompt user that the operation completed.
I'm thinking this should be pretty simple to construct, but now that I've sat down to actually do it, I'm not sure where to start. Thoughts?
Thanks!