Outlook for Mac

applescript creating recurring outlook event – help with the missing value error

待回答 0 个回答

较早的帖子,发布于 2013年11月6日。 其中的信息可能已经过时。

本帖暂无中文翻译,以下为英文原文。

问题 提问于 2013年11月6日
hi 

i need to create a large number of recurring events for setting up the periodic 1-1s. 

i have tried to use the applescript, and i am able to create a standard event without recurrence. however when i add the recurrence piece it fails to create event. your help is greatly appreciated

standalone event creation code

tell application "Microsoft Outlook"

set sd to current date

set time of sd to (13 * 60 * 60)

set evt to make new calendar event with properties {start time:sd, end time:sd + 60 * minutes, subject:"test", content:"test content"}

end tell


above script works


tell application "Microsoft Outlook"

set sd to current date

set time of sd to (13 * 60 * 60)

set evt to make new calendar event with properties {start time:sd, end time:sd + 60 * minutes, subject:"test", content:"test content", recurrence:{start date:sd, end date:{end type:"no end type"}, recurrence type:"daily", occurrence interval:2,  days of week:{"wednesday"}}}


end tell


above script doesnt work. pl help.


i am getting the following error


error "Microsoft Outlook got an error: Can’t make {start date:date \"Wednesday, 6 November 2013 1:00:00 PM\", end date:{end type:\"no end type\"}, recurrence type:\"daily\", occurrence interval:2, month number:11, day of month:1, ordinal:1, days of week:{\"wednesday\"}} into type recurrence, missing value." 

暂无回答

撰写回答

您的邮箱地址不会被公开。请勿发布密码。

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