How to automate audio editing? I want to make audio editing workflows in Automator. My current goal: to cut out exactly the same length from a group of audio files.

I haven't found any audio editors supporting AppleScript yet. Other kinds of scripts/solutions are also welcome.
Install Homebrew, run brew install ffmpeg, and then run something like

cd ~/containing/folder;for f in *.aif;do /usr/local/bin/ffmpeg -i "$f" -ss 0:12:34 -t 0:0:5 -c copy "${f%.aif}-clip.aif";done

where -ss 0:12:34 is the starting position and -t 0:0:5 is the duration.