tyxa tymaker, but in JXA (Javascript eXtended for Automation) - (Only in macOS) Instructions Open up the Automator app. Select Application. Drag in the Run JavaScript action. Paste the code in. Press the play button in the top left of the action.