Open Automator and go to File->New. Click on Application.

Then search for ‘Run AppleScript’ and drag it to the window on the right.

Copy paste the following gist to the window
Save the application in /Applications
or
/Users/$USER/Applications
. Now you can quickly open
emacsclient from Alfred.
Also check out Alfred workflows in the link below
https://github.com/franzheidl/alfred-workflows#open-with-emacs