If selecting all embedded raster images is the only missing step that prevents your action from working, I would recommend to install Rick Johnson's "Select" plugin. It adds many useful items to Illustrator's Select menu commands. One of them will select raster images.
Those additional commands can be fully incorporated into any existing action.
There are other ways, but I think it is the most straightforward one.