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
/Users/$USER/Applications. Now you can quickly open
emacsclient from Alfred.
Also check out Alfred workflows in the link below