Switching Calendar Views
Use the switch view
command to change the display of the calendar window to day, week, or month view, as demonstrated in Listing 6-1 and Listing 6-2.
APPLESCRIPT
tell application "Calendar"
switch view to day view
end tell
JAVASCRIPT
var Calendar = Application("Calendar")
Calendar.switchView({to: "week view"})
Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2016-09-13