Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

initial commit

  • Loading branch information...
commit 41ae3271fa9fca6025e22b9e071e32af55e90efa 0 parents
@jeffturcotte authored
Showing with 64 additions and 0 deletions.
  1. +3 −0  Default.sublime-keymap
  2. +22 −0 TransmitDocksend.py
  3. +39 −0 readme.creole
3  Default.sublime-keymap
@@ -0,0 +1,3 @@
+[
+ { "keys": ["super+u"], "command": "transmit_docksend" }
+]
22 TransmitDocksend.py
@@ -0,0 +1,22 @@
+import sublime
+import sublime_plugin
+import subprocess
+
+class TransmitDocsendCommand(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
+ )
39 readme.creole
@@ -0,0 +1,39 @@
+= Sublime Transmit Docksend
+
+*supports OSX only*
+
+A Sublime Text 2 (http://www.sublimetext.com/2) plugin that provides a key-binding to docksend the current open file through Transmit (http://www.panic.com/transmit/)
+
+== Installation
+
+Clone this repository into a TransmitDocksend folder in the ST2 Packages directory.
+
+{{{
+ git clone git://github.com/jeffturcotte/sublime_transmit_docksend.git ~/Library/Application Support/Sublime Text 2/Packages/TransmitDocksend
+}}}
+
+== Usage
+
+Press cmd+u to Docksend the currently open file.
+
+== License
+
+ Copyright (c) 2011 Jeff Turcotte <jeff.turcotte@gmail.com>
+
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
Please sign in to comment.
Something went wrong with that request. Please try again.