Run AppleScript in Remote - Alfred Help and Support

Run AppleScript with Alfred Remote

As with Workflows, you can run AppleScript to perform actions directly from Remote.

Add a "Run AppleScript" object, and paste in your script.

You can replace the icon for it by dragging a new one on the default icon, and you can change the title below it.

For more advanced actions and for access to Alfred's workflow debugger, take a look at Workflow Triggers.