A shortcut to access another shortcut's comments

Hello there.

I’ve done a shortcut that extracts the text of a shortcut’s comments. It also serves as an example of how to access a shortcut’s content. I have had some problem with regular expressions and with multi-line comments. That’s why I had to “chop” the process and introduce several text replacements. If someone finds out how to do it without them, I will appreciate any help.

https://www.icloud.com/shortcuts/29d64d6e6a0a4a25ab1e950c77cae992

I’m thinking about saving the metadata of the shortcut in a comment (a-la-userscript) and access it like this. Think name, version, author, download/update URL, dependencies, …

1 Like