[TxMt] Unwanted newline after Replace Selected Text

Tim Mansour tim at neologica.com.au
Thu Apr 12 13:44:18 UTC 2007


On 12/04/2007, at 10:32 pm, Charilaos Skiadas wrote:

> 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.

Yes, I should have supplied the script first ... this is what I'm doing:

osascript <<-APPLESCRIPT
set title to "vanishing"
if title is not "" then
	tell application "FileMaker Pro Advanced"
		if not (exists window "HTitles") then open alias "HD:HTitles.fp7"
		set cell "_Search" of layout "Titles" to title
		do script "Search For Title"
		set href to cell "_Search" of layout "Titles"
		set img to cell "_thumb" of layout "Titles"
	end tell
	if href is not "" then set title to img & href
end if
return title
APPLESCRIPT

I'm not sure what I can change in the above to ensure there's no  
newline returned to TextMate?


-- 
Tim Mansour <tim at neologica.com.au>
Neologica Print & Promotions (ABN 63 904 335 408)
159 Commonwealth Street  Surry Hills NSW 2010
Sydney 02 9212 1789  Melbourne 03 9012 7441  Mobile 0405 500 846





More information about the textmate mailing list