The AppleScript below works fine on Outlook 2016 and has worked fine on Outlook 2011 until the most recent 2011 update (today is February 3, 2016).

The AppleScript now generates the error:

error "Microsoft Outlook got an error: Can’t make class calendar event." number -2710 from calendar event to class

Here is the entire AppleScript which scrapes the content from information on the clipboard:

set listContents to get the clipboard
set delimitedList to paragraphs of listContents
if listContents contains "Time: " and listContents contains "Subject: " and listContents contains "Duration: " and listContents contains "Date: " then
set AppleScript's text item delimiters to return
repeat with vLineText in delimitedList
set AppleScript's text item delimiters to {": "}
if vLineText begins with "Date: " then set startDate to last text item of vLineText
if vLineText begins with "Subject: " then set theSummary to last text item of vLineText
if vLineText begins with "Time: " then set startTime to last text item of vLineText
if vLineText begins with "Duration: " then set vDuration to last text item of vLineText
set AppleScript's text item delimiters to return
end repeat

set startDate to startDate & " " & startTime
set theDescription to listContents
set startDate to date startDate
set endDate to startDate + (vDuration * minutes)
set theSummary to "Conference Call: " & startDate & " - " & theSummary

tell application "Microsoft Outlook"
set vEventInfo to make new calendar event with properties {subject:theSummary, plain text content:theDescription, start time:startDate, end time:endDate}
go to startDate --optional to scroll to event
open vEventInfo
end tell
end if

Please report this as a bug and let me know when this will be fixed in a future update or if the syntax has changed.

Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.