To set trigger in google apps script through a dialog in the script editor, follow these steps:
In script editor click on the clock icon.
after that, you will redirect to the trigger page. Click on the Add trigger (Right Bottom on Page)
After that a pop-up window will open, you will select the value from there
When you save it you have to authorize the code