[TxMt] Unwanted newline after Replace Selected Text

Charilaos Skiadas skiadas at hanover.edu
Thu Apr 12 12:32:17 UTC 2007


On Apr 12, 2007, at 2:08 AM, Tim Mansour wrote:

> Hi all,
>
> I've written a command that performs an AppleScript to look up the
> selected text in a FileMaker database. I have the command Output  
> set to
> "Replace Selected Text". It's all working well, except that the result
> that's replacing my selection is always being followed by a  
> newline--which
> is definitely not being added by my AppleScript or FileMaker.
>
> Any ideas on how to get rid of the added newline?

Well we would need to see some part of the command to be able to  
help. Assuming it's written in the shell, I would guess you are using  
"echo" to print the results. Then you would want to have "echo -n"  
instead. Echo automatically adds a newline at the end.
>
> -- 
> Tim Mansour <tim at neologica.com.au>

Haris Skiadas
Department of Mathematics and Computer Science
Hanover College







More information about the textmate mailing list