Here’s a command that works in Terminal but not when executed in Applescript.
do shell script "ffmpeg -f concat -safe 0 -i <(for f in ./*.hevc; do echo \"file '$PWD/$f'\"; done) -c copy " & baseShotName & "_Concat.hevc"
It seems the problem occurs when the parentheses come in. From looking around these forums I see that this creates a subscript and that causes a problem. I tried saving the parenthetical expression as a variable, and then substituting that in. That didn’t work. I tried escape characters, that didn’t work. How do I fix this?