macro help - running org-id-copy successively in a doc
Posted: Mon Jun 27, 2011 9:55 am
Hi folks. Brand new member here. I'm hoping someone can point me in the right direction. I'm a tech writer working on a large org-mode doc with 100's of headings that have :PROPERTY: tags requiring IDs. With shorter docs like this I've just manually run M-x, org-id-copy for each heading property. To save a huge amount of time, what I'd like to use here is use a macro that steps through the doc, finds each instance of :PROPERTIES: and runs org-id-copy.
Just to give you and idea of what I am thinking of, here is a somewhat lame pseudo-code of the procedure, from someone a bit rusty at programming:
search fwd for string ":PROPERTIES:"
Do-while-not-at-EOF {
run org-id-copy
search fwd for string ":PROPERTIES:"
}
Any help would be appreciated.
Patrick
Just to give you and idea of what I am thinking of, here is a somewhat lame pseudo-code of the procedure, from someone a bit rusty at programming:
search fwd for string ":PROPERTIES:"
Do-while-not-at-EOF {
run org-id-copy
search fwd for string ":PROPERTIES:"
}
Any help would be appreciated.
Patrick