MACRO: Get Initial Comment from First Selected Macro

#MACRO: Get Initial Comment from First Selected Macro

Get Initial Comment from First Selected Macro v1.0.kmmacros (8.5 KB)

For the first Macro selected in the Editor, if the first Action is a Comment, this macro returns the Name, Title, and Text of the comment. Otherwise it aborts with an error.

4 Likes

Great macro, Dan! :thumbsup:
Script is very well written, easy to read, easy to mod.

1 Like

Thanks! I tried to put all the functions at the bottom, with the logic at the top, like I know you like, but apparently you can’t do that with objects defined using the pattern I used with KMEngine, So you’ll just have to live with it that way. :slight_smile:

1 Like

That’s very considerate of you, but, just for future ref, just lay out the script in a way that works best for you. I can adapt.

Cool. I aim to please, you know. :slight_smile: