The way to do that is to separate the two processes: First you use an
action to collect the file paths (and maybe the mod date), and then a
folder-level script to sort the files, open them one after another and
process them the way you want to.
I'm not a code writer. I'm trying to streamline some operations here at work. The original code assistance was to print the last page of several pdf documents (sometimes as many as 100 to 150 at a time) without having to open each file, scroll to the bottom, Ctrl-P, current page, Print. Can't express how beneficial it was to get that to work. I realize I'm looking a gift horse in the mouth, but when it prints out, it would be great to have them print in DATE MODIFIED order since they are kept in processed order rather than alpha order.
If the two processes are too labor intensive I fully understand and appreciate all the assistance thus far. I was hoping it would be as simple as the first script coding to do the actual printing.