MacOS Automator: Automate Tasks with AppleScript/JXA