Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4131590
By: iamroderik

pydev scripting. Is it possible to get the POSIX path of the current document
in Eclipse, and then the do a shell command using this?
(and of course binding this command to a key stroke)

To clarify a bit, the emacs/lisp equivalent for the operation I want to perform
is:
(defun save-with-transmit () (interactive)
    (save-buffer)
    (start-process-shell-command "save-with-transmit" nil 
                              "osascript" "~/bin/TransmitFile.scpt"
                                (shell-quote-argument (buffer-file-name))))
(global-set-key "\C-x\C-t" 'save-with-transmit)

This code calls the osascript binary on OSX which in turn executes a AppleScript
that communicates with Transmit.app to do a sftp upload of a file.

regards
/rune


______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to