Outlook 2011에서 applescript를 사용하여 시리즈에서 발생 이벤트를 얻으려면 어떻게해야합니까?

빠른

Outlook 2011에서 다음 코드를 사용하여 일련의 이벤트에서 한 번만 발생하려고하는데 ""Microsoft Outlook에 오류가 있습니다. 지정한 개체는 요소가 아니라 속성입니다. "라는 오류가 표시됩니다. 번호 -10008 ". 무엇이 잘못 되었나요?

tell application "Microsoft Outlook"
    activate
    tell calendar 3
        tell calendar event 1
            get occurrence of at date "Wednesday 29 April 2015 00:00:00"
        end tell
    end tell
end tell
jackjr300

버그이며,이 오류는 이벤트의 반복이 거짓이거나 날짜의 시간이 잘못되었거나 (이벤트 시작 날짜의 시간이어야 함) 현재 발생하지 않을 때 발생합니다.

이 스크립트를 시도해보십시오 (2 행에서 제목 변경).

set tdate to date "Wednesday 29 April 2015 00:00:00"
set event_subject to "some title"
tell application "Microsoft Outlook"
    set myEvent to first calendar event of calendar 3 whose its subject is event_subject and its is recurring is true
    set sdate to start time of myEvent
    tell me to set time of tdate to time of sdate
    try
        set thisCalEvent to get occurrence of myEvent at tdate
    on error
        return "No occurrence of this event at " & tdate
    end try
    return thisCalEvent
end tell

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

Related 관련 기사

뜨겁다태그

보관