emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ken Mankoff <mankoff@gmail.com>
To: Xebar Saram <zeltakc@gmail.com>
Cc: org mode <emacs-orgmode@gnu.org>
Subject: Re: export to ics a specific buffer every X hours
Date: Sun, 26 Jun 2016 13:10:18 -0400	[thread overview]
Message-ID: <m2h9cfri4l.fsf@gmail.com> (raw)
In-Reply-To: <CAOQHXPqAyE6PHSCV8fGioVxhh-yh1HwyNxHNyDRQUX6UF2OuoQ@mail.gmail.com>

Hi,

I don't know if this would help, but I export an Org buffer every time it is saved. On OS X, I have a LaunchAgent that watches the file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>com.kenmankoff.org2ical</string>
	<key>ProgramArguments</key>
	<array>
	<string>/Users/mankoff/bin/org2ical.sh</string>
	</array>
	<key>WatchPaths</key>
	<array>
  		<string>/Users/mankoff/Documents/Org/events.org</string>
	</array>
</dict>
</plist>

And then the shell script that is executed:


/Applications/Emacs.app/Contents/MacOS/Emacs --batch --directory=~/Documents/Org  --visit=~/Documents/Org/events.org --eval '(progn (setq org-agenda-default-appointment-duration 1) (org-icalendar-export-to-ics))'


  -k.
  

  reply	other threads:[~2016-06-26 17:10 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-26 15:38 export to ics a specific buffer every X hours Xebar Saram
2016-06-26 17:10 ` Ken Mankoff [this message]
     [not found] ` <CAJ1MqVGfC0XrwXiX3kiHHGehO2XneKOYoeCRgMbin3f2ejxJiQ@mail.gmail.com>
2016-07-13  8:41   ` Xebar Saram
2016-07-13 15:27     ` Philip Hudson
2016-08-25  7:32       ` Xebar Saram
2016-08-30 13:39         ` Xebar Saram
2016-08-30 13:50           ` John Kitchin
2016-08-30 13:59             ` Xebar Saram

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=m2h9cfri4l.fsf@gmail.com \
    --to=mankoff@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=zeltakc@gmail.com \
    /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).