Skip to content

Instantly share code, notes, and snippets.

@futurist
Created November 18, 2016 09:32
Show Gist options
  • Save futurist/efa4e99b7d72ae6da358895ceeae178a to your computer and use it in GitHub Desktop.
Save futurist/efa4e99b7d72ae6da358895ceeae178a to your computer and use it in GitHub Desktop.
Put current Finder items to Eamcs in macOS
# activate application "Finder"
tell application "Finder" to repeat with f in (get selection)
set p to POSIX path of (f as alias)
do shell script "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -n -f '/tmp/emacsserver/server' " & quoted form of p
end repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment