Created
May 9, 2011 18:15
-
-
Save brettbuddin/963028 to your computer and use it in GitHub Desktop.
DockSend for Vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! DockSend() | |
let filePath = expand("%:p") | |
let appleScript = "-e \"on run argv\r | |
\ignoring application responses\r | |
\tell app \\\"Transmit\\\" to open POSIX file item 1 of argv\r | |
\end ignoring\r | |
\end run\"" | |
silent exec "!osascript " . appleScript . " \"". filePath . "\"" | |
echo filePath." sent to Transmit." | |
endfunction | |
command! DockSend call DockSend() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment