Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jeffturcotte/859265 to your computer and use it in GitHub Desktop.
Save jeffturcotte/859265 to your computer and use it in GitHub Desktop.
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