Hi,
I'm trying to write a simple ssh script to scp a file onto my mac, open it in textmate, block till textmate closes, then scp the file back.
I can't seem to open files with 'mate -w' via ssh though. It does work with 'open -a TextMate <myfile>' but then it doesn't block? Is there anyway to open files using 'open -a' and make it block?
Thanks
--- Jeremy Wilkins Ibex Internet Ltd
Parkside Business Park Parkside Rd. Kendal Cumbria LA9 7EN
Tel: 0845 226 8342 Fax: 08718 729374
On 3/4/2006, at 11:56, Jeremy Wilkins wrote:
I can't seem to open files with 'mate -w' via ssh though. It does work with 'open -a TextMate <myfile>' but then it doesn't block? Is there anyway to open files using 'open -a' and make it block?
http://lists.macromates.com/pipermail/textmate/2006-February/008382.html
This almost works, the issue is related to however OS X discovers (or doesn't) the window server from a remote shell. I have the same kind of issue with growlnotify. Anybody know how to work around this?
Corey
On Apr 3, 2006, at 10:44 AM, Jacob Rus wrote:
Jeremy Wilkins wrote:
I'm trying to write a simple ssh script to scp a file onto my mac, open it in textmate, block till textmate closes, then scp the file back.
If you do get this working, please share!
-Jacob
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Corey Jewett wrote:
This almost works, the issue is related to however OS X discovers (or doesn't) the window server from a remote shell. I have the same kind of issue with growlnotify. Anybody know how to work around this?
I use:
SSH_CLIENT_ADDR=`echo $SSH_CONNECTION | cut -f1 -d" "` LNAME="my-local-(home-computer)-username" function edit { ssh $LNAME@$SSH_CLIENT_ADDR edit "sftp://$LOGNAME@$HOSTNAME/$PWD/$1" }
to get editing in TextWrangler working, but it has built-in (s)ftp support. Something similar may work for this script you have set up. Can't test now as I'm behind a firewall. I'll post back later if I can get it to work.
-Jacob