* Porting Apple Calendars to org-mode
@ 2019-04-24 19:32 Mohamed Wael Khobalatte
2019-04-24 19:42 ` Ken Mankoff
` (2 more replies)
0 siblings, 3 replies; 9+ messages in thread
From: Mohamed Wael Khobalatte @ 2019-04-24 19:32 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 521 bytes --]
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)?
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?
[-- Attachment #2: Type: text/html, Size: 691 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Porting Apple Calendars to org-mode
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-26 3:34 ` David Masterson
2019-05-02 13:44 ` Norman Walsh
2 siblings, 1 reply; 9+ messages in thread
From: Ken Mankoff @ 2019-04-24 19:42 UTC (permalink / raw)
To: Mohamed Wael Khobalatte; +Cc: emacs-orgmode
Hi Mohamed,
On 2019-04-24 at 21:32 +0200, Mohamed Wael Khobalatte
<wael.khobalatte@gmail.com> wrote...
org-mode),
> Does anyone know how I can get my Apple calendar to show up in
> org-mode as readonly (preferably)? I had no luck with org-mac-iCal.
There are several tools named ical2org - different languages, implementations, and/or forks. I used to use one of them when I was on OS X and it worked well for me.
I'm not on OS X anymore but use something called "ical2orgpy" that downloads ICS files from Google and Outlook (and could from iCloud I think?) and converts them to read-only Org buffers. The top line is
-*- eval: (eval (progn (auto-revert-mode 1) (read-only-mode 1))); -*-
So they are read-only and Emacs updates them when the buffer gets changed on disk w/o any questions.
-k.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Porting Apple Calendars to org-mode
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
0 siblings, 2 replies; 9+ messages in thread
From: Mohamed Wael Khobalatte @ 2019-04-24 19:56 UTC (permalink / raw)
To: Ken Mankoff; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1668 bytes --]
Hi Ken,
Thanks for your response. The file(s) you linked to usually assume a
generated list of ics files no? My problem right now is that I do not want
to generate those manually from my Mac (could be done of course, but this
search is for something that does that).
The one that comes close is org-mac-iCal, but again my problem with that
one is that it does not work for all the calendars, even personal one that
is not networked. Surprisingly, it works with the holidays calendar (sorry
I said birthdays before, but it's the holidays one that comes by default).
I do not know what's special about that one, but my guess is that perhaps
the formats or locations have changed for the others, although that would
be..surprising.
On Wed, Apr 24, 2019 at 3:42 PM Ken Mankoff <mankoff@gmail.com> wrote:
> Hi Mohamed,
>
> On 2019-04-24 at 21:32 +0200, Mohamed Wael Khobalatte
> <wael.khobalatte@gmail.com> wrote...
> org-mode),
> > Does anyone know how I can get my Apple calendar to show up in
> > org-mode as readonly (preferably)? I had no luck with org-mac-iCal.
>
> There are several tools named ical2org - different languages,
> implementations, and/or forks. I used to use one of them when I was on OS X
> and it worked well for me.
>
> I'm not on OS X anymore but use something called "ical2orgpy" that
> downloads ICS files from Google and Outlook (and could from iCloud I
> think?) and converts them to read-only Org buffers. The top line is
>
> -*- eval: (eval (progn (auto-revert-mode 1) (read-only-mode 1))); -*-
>
> So they are read-only and Emacs updates them when the buffer gets changed
> on disk w/o any questions.
>
> -k.
>
>
--
Wael Khobalatte
[-- Attachment #2: Type: text/html, Size: 2337 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Porting Apple Calendars to org-mode
2019-04-24 19:56 ` Mohamed Wael Khobalatte
@ 2019-04-24 20:00 ` Mohamed Wael Khobalatte
2019-04-25 2:31 ` Ken Mankoff
1 sibling, 0 replies; 9+ messages in thread
From: Mohamed Wael Khobalatte @ 2019-04-24 20:00 UTC (permalink / raw)
To: Ken Mankoff; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 2065 bytes --]
See for instance
https://www.reddit.com/r/orgmode/comments/7vidfd/has_anyone_gotten_orgmacical_to_work/,
which describes the same problem (although I *do* see some events, namely
holidays, so I am closer to a solution).
On Wed, Apr 24, 2019 at 3:56 PM Mohamed Wael Khobalatte <
wael.khobalatte@gmail.com> wrote:
> Hi Ken,
>
> Thanks for your response. The file(s) you linked to usually assume a
> generated list of ics files no? My problem right now is that I do not want
> to generate those manually from my Mac (could be done of course, but this
> search is for something that does that).
>
> The one that comes close is org-mac-iCal, but again my problem with that
> one is that it does not work for all the calendars, even personal one that
> is not networked. Surprisingly, it works with the holidays calendar (sorry
> I said birthdays before, but it's the holidays one that comes by default).
> I do not know what's special about that one, but my guess is that perhaps
> the formats or locations have changed for the others, although that would
> be..surprising.
>
> On Wed, Apr 24, 2019 at 3:42 PM Ken Mankoff <mankoff@gmail.com> wrote:
>
>> Hi Mohamed,
>>
>> On 2019-04-24 at 21:32 +0200, Mohamed Wael Khobalatte
>> <wael.khobalatte@gmail.com> wrote...
>> org-mode),
>> > Does anyone know how I can get my Apple calendar to show up in
>> > org-mode as readonly (preferably)? I had no luck with org-mac-iCal.
>>
>> There are several tools named ical2org - different languages,
>> implementations, and/or forks. I used to use one of them when I was on OS X
>> and it worked well for me.
>>
>> I'm not on OS X anymore but use something called "ical2orgpy" that
>> downloads ICS files from Google and Outlook (and could from iCloud I
>> think?) and converts them to read-only Org buffers. The top line is
>>
>> -*- eval: (eval (progn (auto-revert-mode 1) (read-only-mode 1))); -*-
>>
>> So they are read-only and Emacs updates them when the buffer gets changed
>> on disk w/o any questions.
>>
>> -k.
>>
>>
>
> --
> Wael Khobalatte
>
>
--
Wael Khobalatte
[-- Attachment #2: Type: text/html, Size: 3316 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Porting Apple Calendars to org-mode
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
1 sibling, 1 reply; 9+ messages in thread
From: Ken Mankoff @ 2019-04-25 2:31 UTC (permalink / raw)
To: Mohamed Wael Khobalatte; +Cc: emacs-orgmode
On 2019-04-24 at 21:56 +0200, Mohamed Wael Khobalatte <wael.khobalatte@gmail.com> wrote...
> The file(s) you linked to usually assume a generated list of ics files
> no?
I didn't link to any files. There are *many* ical2org packages, many different ones. The one I currently use does expect an ICS file. If you use iCloud you have access to these. If your calendar is 100% local, then try this ical2org code: https://github.com/mankoff/ical2org I used to maintain that fork, and used it many years ago with an only-local iCal setup that did not have ICS files, just some weird Apple folder structure in ~/Library/.
Sorry I can't help more. The code is old and I'm going offline for the next 5 weeks. But if you look at these two different ical2org, the ruby implementation, the Perl implementation, etc. one of them might do what you want.
-k.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Porting Apple Calendars to org-mode
2019-04-25 2:31 ` Ken Mankoff
@ 2019-04-25 2:41 ` Mohamed Wael Khobalatte
0 siblings, 0 replies; 9+ messages in thread
From: Mohamed Wael Khobalatte @ 2019-04-25 2:41 UTC (permalink / raw)
To: Ken Mankoff; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1073 bytes --]
Thanks Ken, I'll check them out. If none works then I might try to code up
something.
On Wed, Apr 24, 2019 at 10:31 PM Ken Mankoff <mankoff@gmail.com> wrote:
>
> On 2019-04-24 at 21:56 +0200, Mohamed Wael Khobalatte <
> wael.khobalatte@gmail.com> wrote...
> > The file(s) you linked to usually assume a generated list of ics files
> > no?
>
> I didn't link to any files. There are *many* ical2org packages, many
> different ones. The one I currently use does expect an ICS file. If you use
> iCloud you have access to these. If your calendar is 100% local, then try
> this ical2org code: https://github.com/mankoff/ical2org I used to
> maintain that fork, and used it many years ago with an only-local iCal
> setup that did not have ICS files, just some weird Apple folder structure
> in ~/Library/.
>
> Sorry I can't help more. The code is old and I'm going offline for the
> next 5 weeks. But if you look at these two different ical2org, the ruby
> implementation, the Perl implementation, etc. one of them might do what you
> want.
>
> -k.
>
>
--
Wael Khobalatte
[-- Attachment #2: Type: text/html, Size: 1738 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Porting Apple Calendars to org-mode
2019-04-24 19:32 Porting Apple Calendars to org-mode Mohamed Wael Khobalatte
2019-04-24 19:42 ` Ken Mankoff
@ 2019-04-26 3:34 ` David Masterson
2019-04-26 3:37 ` Mohamed Wael Khobalatte
2019-05-02 13:44 ` Norman Walsh
2 siblings, 1 reply; 9+ messages in thread
From: David Masterson @ 2019-04-26 3:34 UTC (permalink / raw)
To: Mohamed Wael Khobalatte; +Cc: emacs-orgmode@gnu.org
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)?
>
> 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?
A suggestion is to look at https://github.com/pimutils/vdirsyncer. I
don't know anything more, but it looks promising.
--
David
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Porting Apple Calendars to org-mode
2019-04-26 3:34 ` David Masterson
@ 2019-04-26 3:37 ` Mohamed Wael Khobalatte
0 siblings, 0 replies; 9+ messages in thread
From: Mohamed Wael Khobalatte @ 2019-04-26 3:37 UTC (permalink / raw)
To: David Masterson; +Cc: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]
Thanks, I actually got .org-mac-iCal working, and even changed it to be
able to load non-Apple calendars if present in the local calendar app. I
will try and push the modified version to github or send a patch.
On Thu, Apr 25, 2019 at 11:34 PM David Masterson <dsmasterson@outlook.com>
wrote:
> 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)?
> >
> > 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?
>
> A suggestion is to look at https://github.com/pimutils/vdirsyncer. I
> don't know anything more, but it looks promising.
>
> --
> David
>
--
Wael Khobalatte
[-- Attachment #2: Type: text/html, Size: 1895 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Porting Apple Calendars to org-mode
2019-04-24 19:32 Porting Apple Calendars to org-mode Mohamed Wael Khobalatte
2019-04-24 19:42 ` Ken Mankoff
2019-04-26 3:34 ` David Masterson
@ 2019-05-02 13:44 ` Norman Walsh
2 siblings, 0 replies; 9+ messages in thread
From: Norman Walsh @ 2019-05-02 13:44 UTC (permalink / raw)
To: emacs-orgmode
[-- 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 --]
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2019-05-02 13:44 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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).