emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Norman Walsh <ndw@nwalsh.com>
To: emacs-orgmode@gnu.org
Subject: Re: Porting Apple Calendars to org-mode
Date: Thu, 02 May 2019 08:44:01 -0500	[thread overview]
Message-ID: <m236lxgee6.fsf@nwalsh.com> (raw)
In-Reply-To: <CAEtiScmGSBmFNOg_213Mx=LMjqtmozTPufEkvHvHr4znQ00FTg@mail.gmail.com> (Mohamed Wael Khobalatte's message of "Wed, 24 Apr 2019 15:32:52 -0400")

[-- Attachment #1: Type: text/plain, Size: 1738 bytes --]

Mohamed Wael Khobalatte <wael.khobalatte@gmail.com> writes:
> Hi guys, I posted a question to the Emacs StackExchange
> (https://emacs.stackexchange.com/questions/50137/show-apple-calendar-events-in-org-mode),
> but I believe it's better asked here. Does anyone know how I can get
> my Apple calendar to show up in org-mode as readonly (preferably)?

Coincidentally, I just went through this exercise myself.

I fixed a couple of issues in icalevents[1] and then worked out how to
get the calendar details from database that the Mac actually uses to
track the calendars. I wrote icaldiary[2] to extract events from my
calendar(s) and create an emacs “diary” file which Org reads quite
happily.

> I had no luck with org-mac-iCal. Only one calendar (the Birthdays
> calendar) shows up, eventhough all other calendars are *checked*, as
> the documentation from that package requires. It is also rather old,
> so not sure if it works anymore?

Yeah, I found the same problem. I think that Apple stopped storing the
active calendar data in the plist files that org-mac-iCal checks. They
moved it into the cache which they store with sqlite3.

Hoping this is helpful…

                                        Be seeing you,
                                          norm

[1] https://github.com/ndw/icalevents
[2] https://gist.github.com/ndw/e76a3dad862989deb0cb74b3e2b557b4

-- 
Norman Walsh <ndw@nwalsh.com> | Throughout history the world has been
http://nwalsh.com/            | laid waste to ensure the triumph of
                              | conceptions that are now as dead as the
                              | men that died for them.--Henry De
                              | Montherlant

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

      parent reply	other threads:[~2019-05-02 13:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-24 19:32 Porting Apple Calendars to org-mode Mohamed Wael Khobalatte
2019-04-24 19:42 ` Ken Mankoff
2019-04-24 19:56   ` Mohamed Wael Khobalatte
2019-04-24 20:00     ` Mohamed Wael Khobalatte
2019-04-25  2:31     ` Ken Mankoff
2019-04-25  2:41       ` Mohamed Wael Khobalatte
2019-04-26  3:34 ` David Masterson
2019-04-26  3:37   ` Mohamed Wael Khobalatte
2019-05-02 13:44 ` Norman Walsh [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m236lxgee6.fsf@nwalsh.com \
    --to=ndw@nwalsh.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).