You can follow the discussion on How to Call macOS APIs with Swift in Automator Workflows without having to leave a comment. Cool, huh? Just enter your email address in the form here below and you're all set.