|
From: | Xebar Saram |
Subject: | Re: [O] export to ics a specific buffer every X hours |
Date: | Wed, 13 Jul 2016 11:41:53 +0300 |
For 1), change:On 26 June 2016 at 16:38, Xebar Saram <address@hidden> wrote:
> 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
(org-icalendar-export-to-ics)
to something like this:
(rename-file (org-icalendar-export-to-ics) your-preferred-pathname)
For 2), evaluate this:
(info "(elisp) Timers")
--
Phil Hudson http://hudson-it.ddns.net
@UWascalWabbit PGP/GnuPG ID: 0x887DCA63
[Prev in Thread] | Current Thread | [Next in Thread] |