Dialog.Showでダイアログが表示されない

別のスクリプトで行った、userInteractionlevelでダイアログを表示させない設定InDesignを終了させてもまだ生きていた。
userInteractionlevelを変更した時は必ず元に戻しておくこと。