Skip to content

Commit

Permalink
Fixed mistakes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sprig committed Mar 31, 2016
1 parent 9b92214 commit 3046f92
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Binary file modified EmacsClient.app.zip
Binary file not shown.
12 changes: 7 additions & 5 deletions README.md
Expand Up @@ -46,25 +46,27 @@ update-desktop-database ~/.local/share/applications/
Start Applescript Editor. Paste the following snippet:

``` applescript
set emacsclient to "/Applications/Emacs.app/Contents/MacOS/bin-x86_64-10_9/emacsclient -n -c -a \"/Applications/Emacs.app/Contents/MacOS/Emacs\""
on emacsclient(input)
do shell script "/Applications/Emacs.app/Contents/MacOS/bin-x86_64-10_9/emacsclient -n -c -a \"/Applications/Emacs.app/Contents/MacOS/Emacs\" '" & input & "'"
end emacsclient
on open location input
do shell script emacsclient & "\"" & input & "\""
emacsclient(input)
end open location
on open inputs
repeat with raw_input in inputs
set input to POSIX path of raw_input
do shell script emacsclient & "\"" & input & "\""
emacsclient(input)
end repeat
end open
on run
do shell script emacsclient
do shell script emacsclient("")
end run
```

And save it (with 'type' as Application) under ```/Applications/EmacsClient.app``` (or whatever else you choose).
Adjust the paths and save it (with 'type' as Application) under ```/Applications/EmacsClient.app``` (or whatever else you choose).
Edit (with Xcode) the file ```/Applications/Emacsclient.app/Contents/Info.plist```

And add there the following:
Expand Down

0 comments on commit 3046f92

Please sign in to comment.