set theButton to button returned of (display dialog "Do you want to create an event for a ToDo due this week or all Open" with title "Select ToDo" buttons {"Due This Week", "All Open"} default button 1)