Hi Rick,
Thank you for your response!
1. For some reason, not all scripts become "Registered" when run. For example, your command code checking script becomes Registered when run. The Apply Master Pages script posted by Jang in the previous discussion works fine but is not added to "Registered" when run. I don't understand what the difference is. If added to Autorun, a script will appear under Autorun and not under Registered, as far as I can see.
2. OK, thank you!
3. Got it, thanks!
4. I tested yours and got "[Object InvalidObject]". BTW, I'm using FM 10, in case this matters.
5. I see. But how did you discover that the function is triggered twice?
Thank you again!
My best regards,
Roman