Iām working on a pretty cool macro that will highly automate macro uploading, but I need a little (or lot) of help from my friends.
I need a script that will:
Select the first Action of a given macro
Return the Name of that Action.
Return the contents (plain text) of that Comment Action
Iām thinking some (or at least one) of you KM macro hacker gurus have probably already done this.
Anyone up to the challenge?
TIA.
Just call me your Code Monkey.
#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.
[image]
Thanks Dan. But if I know you, you had that in your back pocket all the time.
Mostly. I just had to strip it out of something and make it presentable.
@DanThomas , just wanted to let you know that your script worked very well ā no issues. It is just taking me a bit longer with the macro Iām using it in that I expected. Thanks again.
1 Like