emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] export to ics a specific buffer every X hours


From: Ken Mankoff
Subject: Re: [O] export to ics a specific buffer every X hours
Date: Sun, 26 Jun 2016 13:10:18 -0400
User-agent: mu4e 0.9.17; emacs 25.0.95.1

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 via email to

[Prev in Thread] Current Thread [Next in Thread]