In outlook 2011, how can I get an occurrence event out of a series using applescript? -
in outlook 2011 try use following code single occurrence out of series of events, shows error ""microsoft outlook got error: specified object property, not element." number -10008". went wrong?
tell application "microsoft outlook" activate tell calendar 3 tell calendar event 1 occurrence of @ date "wednesday 29 april 2015 00:00:00" end tell end tell end tell
it's bug, error occurs when recurring of event false, or when time of date wrong (must time of start date of event) or no occurrence @ day.
try script, (change subject in line 2)
set tdate date "wednesday 29 april 2015 00:00:00" set event_subject "some title" tell application "microsoft outlook" set myevent first calendar event of calendar 3 subject event_subject , recurring true set sdate start time of myevent tell me set time of tdate time of sdate try set thiscalevent occurrence of myevent @ tdate on error return "no occurrence of event @ " & tdate end try return thiscalevent end tell
Comments
Post a Comment