Outlook 2011 bug from recent update?
Outlook 2011 bug from recent update?
- Subject: Outlook 2011 bug from recent update?
- From: Bill Vlahos <email@hidden>
- Date: Mon, 01 Feb 2016 15:34:07 -0800
Is anyone else having an issue with Outlook for Mac 2011 recent update breaking the ability to create a new calendar event?
I’m now getting the error
error "Microsoft Outlook got an error: Can’t make class calendar event." number -2710 from calendar event to class
My AppleScript was working before the update to create the new calendar event and still works on the current Outlook for Mac 2016.
Here is my code. All of the properties (subject, content, start time, and end time) are correctly formed.
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
else
display dialog "Error: Clipboard did not contain a calendar invitation"
end if
Thank you,
Bill Vlahos
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden