Start outlook and open calendar using applescript

applescriptms office

I know how to start outlook:

tell application "Microsoft Outlook"
   activate
   set folderName to "Calendar"
end tell

but the set folderName does not seem to open the calendar view

Best Answer

This script will open Microsoft Outlook, bring it to the front, and set the view to Calendar view.

tell application "Microsoft Outlook"
    activate
    set theWindow to first main window
    set the view of theWindow to calendar view
end tell

Is that what you're looking for?