[TxMt] Unwanted newline after Replace Selected Text

Robin Houston robin.houston at gmail.com
Thu Apr 12 13:56:50 UTC 2007


On 4/12/07, Tim Mansour <tim at neologica.com.au> wrote:
>
> I'm not sure what I can change in the above to ensure there's no
> newline returned to TextMate?


Ugly, but ought to work:

echo -n "$(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)"



Robin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070412/573dd7fb/attachment.html>


More information about the textmate mailing list