I created a service in macOS so I could open any file with emacs as I wanted. The service was created using Automator with the following shell script:
/usr/local/bin/../Cellar/emacs/25.3/bin/emacsclient -nc "$@"
While this service will always failed with the following message:
emacsclient: could not get terminal name
Anyone has some clues? Thanks forward.