How to create an Action to mask images using Select Subject then batch automate a folder of images. Video tutorial is Windows. Steps work the same both macOS and Windows.
Useful scripts for Adobe Creative Cloud applications: https://www.marspremedia.com/software