Sha256: fe35e8179814711328e648e3216546cb6810ed598a6b3b2a32b9e69f7f12e588

Contents?: true

Size: 508 Bytes

Versions: 4

Compression:

Stored size: 508 Bytes

Contents

on run argv
  set window_from to date (item 1 of argv)
  set window_to   to date (item 2 of argv)

  tell application "Calendar"
    set results to {}

    set cdars to (events whose start date <= window_to and end date > window_from) in every calendar
    repeat with cdar in cdars
      repeat with evt in cdar
        set end of results to {summary:summary of evt, start_date:start date of evt as string, end_date:end date of evt as string}
      end repeat
    end repeat

    results
  end tell
end run

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
waddup-0.2.2 lib/waddup/sources/apple_calender/events.applescript
waddup-0.2.1 lib/waddup/sources/apple_calender/events.applescript
waddup-0.2.0 lib/waddup/sources/apple_calender/events.applescript
waddup-0.1.0 lib/waddup/sources/apple_calender/events.applescript