Saving command buffer to wave note

Hello,

When saving data I often save relevant experimental parameters in the wave note. I'm finding that more often than not I wish I had saved the command I typed into the command line.

I was wondering if there is a function in igor that returns the current string in the command buffer? I haven't been able to find anything in the documentation but may be looking in the wrong place.

 

Thanks!

The closest thing is CaptureHistory but it may be tricky to implement. It may be better to explicitly store the command in the wave note at the time you execute it.