I want do something when user change page name or layer name. Has any guys help me?
You want the RenameLayer action. Don’t believe there is anything for renaming Pages unfortunately. See documentation for an example: https://developer.sketch.com/plugins/actions
Thank you. I missed RenameLayer when I was searching.
For RenamePage, I want to made a structured document, especially to specify the contents of the page by its page name. Therefor plugin will change page content or protect page name when user change page name.