It okay is, because this will be great learning for our minds! There is a way, to have your Extendscript execute the AHK script which tells it to "send" the F-keys as if it came from your keyboard. The action will go, but I am not very clear on how out of synch the action will be with the script. At first thought , putting $.sleep() may do the trick, especially if your action does not take long & there's not a big chance of it having to take long. Well, anywho, after the time break, it will go do its script thing, which is select the next shape or group (pageItem). And at the end, hey, you can try tacking on the PSD saving using the export with ExportOptionsPhotoshop- but that's later! imagecollection has some examples here of executing an AHK script from the jsx script, check 'em out!
... View more