<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Here's another take on it. I created a new bundle called SCP and added the command below. It relies on 1) You having a project; and 2) Your having entered HOST_NAME, USER_ID, and ROOT_DIR in the project's environment variables. It also relies on shared-key access to the host so I don't have to send a password. Comments?<DIV><BR class="khtml-block-placeholder"></DIV><DIV># ------------------------</DIV><DIV>#!/usr/bin/env ruby</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>class String</DIV><DIV>  def -(other_string)</DIV><DIV>    self.sub(other_string, '')</DIV><DIV>  end</DIV><DIV>end</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>working_file = ENV['TM_FILEPATH'] - ENV['TM_PROJECT_DIRECTORY']</DIV><DIV>working_directory = working_file.gsub(/\/[^\/]*$/, '')</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>puts "Working File: #{working_file}"</DIV><DIV>puts "Working Directory: #{working_directory}"</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>scp_cmd = "scp #{ENV['TM_FILEPATH']} #{ENV['USER_ID']}@#{ENV['HOST_NAME']}:#{File.join(ENV['ROOT_DIR'], working_directory)}"</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>system scp_cmd</DIV><DIV># ------------------------</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV><DIV>On Feb 7, 2007, at 3:12 PM, Dave Grijalva wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">if it's a single file, you can simply open the file directly on the server using something like cyberduck or transmit.  <BR><BR>for cyberduck in preferences under the general tab, choose textmate from the edior pulldown. <BR>connect to your server.<BR>find the file and click the edit icon (should be the textmate icon).<BR>edit the file in textmate.  when you save, it is automatically pushed back up.<BR><BR>-dave<BR><BR><DIV><SPAN class="gmail_quote"> On 2/7/07, <B class="gmail_sendername">s.ross</B> <<A href="mailto:cwdinfo@gmail.com">cwdinfo@gmail.com</A>> wrote:</SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Well, I'd rather use Capistrano, but it's a big hammer for a one-file<BR>edit to a Smarty template (client says, "add 'now hiring' to the home<BR>page) in a PHP project. Given the great integration with sftp <BR>clients, I was kinda hoping this would be pretty easy.<BR><BR><BR>On Feb 7, 2007, at 2:41 PM, Steve Lianoglou wrote:<BR><BR>>> So having something that intelligently deals with local to remote<BR>>> paths is probably the tricky party here.  You probably don't want <BR>>> to type a remote path every time.  This might be a good time to<BR>>> try out MacFUSE and sshfs.<BR>><BR>> .. or subversion/cvs ... :-)<BR>><BR>> -steve<BR>><BR>> ______________________________________________________________________ <BR>> For new threads USE THIS: <A href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</A><BR>> (threading gets destroyed and the universe will collapse if you don't)<BR>> <A href="http://lists.macromates.com/mailman/listinfo/textmate"> http://lists.macromates.com/mailman/listinfo/textmate</A><BR><BR><BR>______________________________________________________________________<BR>For new threads USE THIS: <A href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com </A><BR>(threading gets destroyed and the universe will collapse if you don't)<BR><A href="http://lists.macromates.com/mailman/listinfo/textmate">http://lists.macromates.com/mailman/listinfo/textmate</A><BR></BLOCKQUOTE> </DIV><BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">______________________________________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">For new threads USE THIS: <A href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">(threading gets destroyed and the universe will collapse if you don't)</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="http://lists.macromates.com/mailman/listinfo/textmate">http://lists.macromates.com/mailman/listinfo/textmate</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></BODY></HTML>