Created
March 7, 2011 21:25
-
-
Save jeffturcotte/859265 to your computer and use it in GitHub Desktop.
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
import sublime, sublime_plugin, subprocess | |
class DocsendCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
script = """ | |
on run | |
ignoring application responses | |
tell application "Transmit" | |
open POSIX file "%s" | |
end tell | |
end ignoring | |
end run | |
""" | |
proc = subprocess.Popen( | |
["osascript", "-e", script % self.view.file_name()], | |
stdin=subprocess.PIPE, | |
stdout=subprocess.PIPE, | |
stderr=subprocess.STDOUT | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment