emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* export to ics a specific buffer every X hours
@ 2016-06-26 15:38 Xebar Saram
  2016-06-26 17:10 ` Ken Mankoff
       [not found] ` <CAJ1MqVGfC0XrwXiX3kiHHGehO2XneKOYoeCRgMbin3f2ejxJiQ@mail.gmail.com>
  0 siblings, 2 replies; 8+ messages in thread
From: Xebar Saram @ 2016-06-26 15:38 UTC (permalink / raw)
  To: org mode

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

Hi all

so i have pathetic coding skill but managed somehow to come up with this

 (defun z/save-meeting-to-ics ()
    "If the current file is in '~/.dotfiles', the code blocks are tangled"
    (when (equal (buffer-file-name)
                 (expand-file-name "/home/zeltak/org/files/agenda/
meetings.org"))
      (org-icalendar-export-to-ics)
      (message "exported to ics")))

this does save the org file "meetings.org" to an ICS file in the same
folder as the file. but i want to do 2 additional things:
1)save the resulting ICS file to a different directory
2)run this function every X hours (lets say every 2 hours)

any clue guys?

thx!

Z

[-- Attachment #2: Type: text/html, Size: 1031 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-08-30 14:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-26 15:38 export to ics a specific buffer every X hours Xebar Saram
2016-06-26 17:10 ` Ken Mankoff
     [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

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).