Need help with script to read component( button) when click and placing it in tag. Is there any possibility

Thanks will try and update.

It works. used Objectna.openTextFile(event) to call it.
Thanks once again.