Skip to content

Instantly share code, notes, and snippets.

@meeuw
Created April 3, 2017 08:54
Show Gist options
  • Save meeuw/98cf1cb71c68bc5e05e53362cf86b2a6 to your computer and use it in GitHub Desktop.
Save meeuw/98cf1cb71c68bc5e05e53362cf86b2a6 to your computer and use it in GitHub Desktop.
vim proxy to execute remote extendscript files
nnoremap <leader>p <Esc>:w! /home/user/vimproxy/pipe<CR>
socat tcp4-listen:5555,fork,reuseaddr exec:'cat pipe'
#!/bin/bash
while true ; do
cat < /dev/tcp/10.0.2.2/5555 > /c/Temp/script.jsx.1
TARGET="/C/Users/user/Documents/Adobe Scripts/script.jsx"
rm -f "$TARGET"
mv /c/Temp/script.jsx.1 "$TARGET"
'/c/Program Files (x86)/Adobe/Adobe ExtendScript Toolkit CC/ExtendScript Toolkit.exe' -run 'C:\Users\user\Documents\Adobe Scripts\script.jsx'
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment