Page 1 of 1

Can I append text to a list?

Posted: Thu Dec 25, 2008 6:31 pm
by rmathes
I have a RTF document that is formatted as a bulleted list. I can use LaunchBar to append text to the document but it does not insert it into the list so that the new text now is a separate line with its own bullet, but instead as un-bulleted text below the list.

Is there any way to append it directly into the list? I’m guessing no but never hurts to ask.

And Merry Christmas from Texas, y’all!

Posted: Thu Dec 25, 2008 11:36 pm
by ludwigschubert
You'll have to use a custom Applescript for that – show me the script you're using now, and we'll likely be able to find a way to modify it.

Posted: Fri Dec 26, 2008 3:08 am
by rmathes
not sure what you mean by which script I'm using. I’m using LaunchBar’s ‘append text’ functionality.

I search for the file, find it, hit shift/space to go into ‘append text’ mode, type my text, hit enter, done.

Posted: Fri Dec 26, 2008 11:56 am
by ludwigschubert
Ah, yes. Hm. Sorry, I should've thought of that built-in feature.

I don't think we can trick the "append text" function in LaunchBar to do that by itself.

If you just want to use this feature on a single file however – say, a todo list – I can write a script that appends a bulleted line to that specific file only. So you'd search for the script, say "New Todo", hit spacebar and type your text.

That's a nice exercise as it seems to be way more complicated than it looks… I took a glance at a RTF document and the syntax for a list item looks like

Code: Select all

\f0\fs24 \cf0 {\listtext   \'95   }Test\

Posted: Fri Dec 26, 2008 3:51 pm
by rmathes
thank you for your reply, Ludwig. For now I'm settling for adding the text without the bullets and simply adjusting the formatting/line spacing of the document to create sufficient space to make the list readable. Not a huge deal but would’ve been nice.

Thanks again.