Using MacOS Mojave, I recently intalled the last version of vim thanks to this easy tutorial : https://medium.com/swlh/vim-is-vulnerable-update-vim-on-macos-66402e5ab46a
I am now trying to synchronize it with Skim to do backward search. To do so, I am using a script in which vim is activated using AppleScript with the following command :
osascript -e 'tell app "Vim" to activate'
I get the following error when executing:
18:26: execution error: Il est impossible d’obtenir application "Vim". (-1728)
(translation from French : It is impossible to obtain application "vim")
macerror -1728
gives me:
Mac OS error -1728 (errAENoSuchObject): e.g.,: specifier asked for the 3rd, but there are only 2. Basically, this indicates a run-time resolution error.
I have tried changing "vim" to "Vim" in the command; creating a symlink from vim in /Applications
to vim in /usr/local/bin
; changing owner of vim to $USER
. Nothing worked.
Anyone has any idea what is going on ?