iCal 캘린더에서 이벤트를 선택할 때 필터로 datetime 속성의 요일 필드를 사용하려고합니다.datetime을 사용하는 py-appscript 필터
다음은 (현재 날짜에 대한 모든 이벤트를 선택합니다) 작동하지 않는 것 :의 일을 인쇄 (AttributeError: Unknown property, element or command: 'day'
그러나,이 작품 :
cal = app("iCal").calendars["myCalender"].get()
cDate = datetime.now()
cEvents = cal.events[its.start_date.day==cDate.day].get()
내가 결과를 얻을 수 모든 이벤트) ...
cal = app("iCal").calendars["myCalender"].get()
for cEvent in cal.events.get():
print cEvent.start_date.get().day
첫 번째 예제의 'its' 객체는 어디에서 유래 되었습니까? – eumiro