I'd like to use Hazel (a rule-based file system automator) for macOS to automatically move mixtape audio files from one folder to another, if their duration is longer than 30 minutes.
Hazel doesn't provide a built-in method of checking for audio file length (that I know of), but it provides the ability to run rules if an AppleScript condition is passed, i.e.
Judging from the screenshot below, I think it works if
length of theFile > 30*60 seconds: return true (pseudo code).
I'm not however sure how to accomplish this via AppleScript. Any ideas how to do it, or where to start? A search online didn't provide many basic ideas, but it seems to be possible.
Note: Giving advice on AppleScripts is outside the scope of the Hazel support AFAIK, so I can't get any help from them.