Skip to content

Instantly share code, notes, and snippets.

@japanese-goblinn
Last active May 15, 2022 13:18
Show Gist options
  • Save japanese-goblinn/358556dcb2805df70ed7caa144f8ab82 to your computer and use it in GitHub Desktop.
Save japanese-goblinn/358556dcb2805df70ed7caa144f8ab82 to your computer and use it in GitHub Desktop.
How to get reminder creation date from Apple Reminders
#!/usr/bin/osascript
use scripting additions
set reminders_names to {}
set creation_dates to {}
set output to ""
tell application "Reminders"
launch
# i'm listing not completed items only from default list (specifying concrete list for some reason returning error)
set {reminders_names, creation_dates} to {name, creation date} of (every reminder where completed is not true) of default list
end tell
repeat with i from 1 to number of items in reminders_names
set output to output & (item i of reminders_names) & " -- " & (item i of creation_dates) & "\n\n"
end repeat
tell application "System Events"
set the clipboard to output as text
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment