Acquire docinformation:title on template open

I’d like to have a Writer template automatically request input for the document title as soon as it is opened, and store the answer in the field ‘DocInformation:Title’… MS Word has a handy AutoNew macro option that can do this with a message box, or via Ask or Fillin fields (less reliable).

What’s the best way to accomplish this in Writer?

I think that with a macro you can do the same in Writer and hope that one of our macro specialists will see this question and provide us with a macro.