From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: export to ics a specific buffer every X hours Date: Sun, 26 Jun 2016 18:38:57 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113e6600bd304f05363033e3 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45634) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHC9G-0006jq-Ne for emacs-orgmode@gnu.org; Sun, 26 Jun 2016 11:39:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHC9E-0005km-Jm for emacs-orgmode@gnu.org; Sun, 26 Jun 2016 11:39:01 -0400 Received: from mail-yw0-x22b.google.com ([2607:f8b0:4002:c05::22b]:33755) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHC9E-0005ki-EV for emacs-orgmode@gnu.org; Sun, 26 Jun 2016 11:39:00 -0400 Received: by mail-yw0-x22b.google.com with SMTP id v77so137531682ywg.0 for ; Sun, 26 Jun 2016 08:38:59 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: org mode --001a113e6600bd304f05363033e3 Content-Type: text/plain; charset=UTF-8 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 --001a113e6600bd304f05363033e3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all

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

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

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

any clue guys?

thx!

Z
--001a113e6600bd304f05363033e3--