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

* Re: export to ics a specific buffer every X hours
  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>
  1 sibling, 0 replies; 8+ messages in thread
From: Ken Mankoff @ 2016-06-26 17:10 UTC (permalink / raw)
  To: Xebar Saram; +Cc: org mode

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.
  

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

* Re: export to ics a specific buffer every X hours
       [not found] ` <CAJ1MqVGfC0XrwXiX3kiHHGehO2XneKOYoeCRgMbin3f2ejxJiQ@mail.gmail.com>
@ 2016-07-13  8:41   ` Xebar Saram
  2016-07-13 15:27     ` Philip Hudson
  0 siblings, 1 reply; 8+ messages in thread
From: Xebar Saram @ 2016-07-13  8:41 UTC (permalink / raw)
  To: Philip Hudson, org mode

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

Thx

i do have this now

  (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"))
 (rename-file (org-icalendar-export-to-ics)
"/home/zeltak/org/files/export/kcal.ics")
      (message "exported to ics")))

;;run every 30 minutes

(run-with-timer 0 (* 30 60) 'z/save-meeting-to-ics)
;;(run-with-idle-timer 600 t #'org-agenda-redo) ;; to rebuild it every 600
second
;;  (add-hook 'after-save-hook #'z/save-meeting-to-ics)

yet i cant get the ics file to be created niether when i save the
meeting.org file nor every 600 seconds. what am i missing here?

thx

Z

On Sun, Jun 26, 2016 at 9:49 PM, Philip Hudson <phil.hudson@iname.com>
wrote:

> On 26 June 2016 at 16:38, Xebar Saram <zeltakc@gmail.com> 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
>
> For 1), change:
>
>     (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
>

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

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

* Re: export to ics a specific buffer every X hours
  2016-07-13  8:41   ` Xebar Saram
@ 2016-07-13 15:27     ` Philip Hudson
  2016-08-25  7:32       ` Xebar Saram
  0 siblings, 1 reply; 8+ messages in thread
From: Philip Hudson @ 2016-07-13 15:27 UTC (permalink / raw)
  To: Xebar Saram; +Cc: org mode

You have _two_ concerns here. First is what to do when you save
"meetings.org", second is what to do every half hour. Your code
handles both of them, essentially correctly, but in the wrong place.

On 13 July 2016 at 09:41, Xebar Saram <zeltakc@gmail.com> wrote:
> Thx
>
> i do have this now
>
>   (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"))

This means the code will only execute if the current buffer is
"meetings.org" when it executes. That _is_ what you want when you save
meetings.org, but it _is not_ what you want when the timer executes.

Break out the body of the `when' form into its own function, and call
that function from the timer, instead of `z/save-meeting-to-ics'.

>  (rename-file (org-icalendar-export-to-ics)
> "/home/zeltak/org/files/export/kcal.ics")
>       (message "exported to ics")))
>
> ;;run every 30 minutes
>
> (run-with-timer 0 (* 30 60) 'z/save-meeting-to-ics)
> ;;(run-with-idle-timer 600 t #'org-agenda-redo) ;; to rebuild it every 600
> second
> ;;  (add-hook 'after-save-hook #'z/save-meeting-to-ics)
>
> yet i cant get the ics file to be created niether when i save the
> meeting.org file

For this, you need to add `z/save-meeting-to-ics' to the Emacs global
variable `after-save-hook' using function `add-hook'.

> nor every 600 seconds.

You mean 1800 seconds, I think.

> what am i missing here?
>
> thx
>
> Z
>
> On Sun, Jun 26, 2016 at 9:49 PM, Philip Hudson <phil.hudson@iname.com>
> wrote:
>>
>> On 26 June 2016 at 16:38, Xebar Saram <zeltakc@gmail.com> 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
>>
>> For 1), change:
>>
>>     (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
>
>



-- 
Phil Hudson                   http://hudson-it.ddns.net
@UWascalWabbit                 PGP/GnuPG ID: 0x887DCA63

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

* Re: export to ics a specific buffer every X hours
  2016-07-13 15:27     ` Philip Hudson
@ 2016-08-25  7:32       ` Xebar Saram
  2016-08-30 13:39         ` Xebar Saram
  0 siblings, 1 reply; 8+ messages in thread
From: Xebar Saram @ 2016-08-25  7:32 UTC (permalink / raw)
  To: Philip Hudson; +Cc: org mode

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

Hi again all

so i have a related question so ill continue in this thread. i have been
using this command succesfully in the last few weeks

(defun z/export-to-ics ()
(interactive)
(rename-file (org-icalendar-export-to-ics)
"/home/zeltak/org/files/export/kcal.ics")
(message "exported to ics"))


this forces me to first open the file i want (meetings.org) and then launch
the above command. is there a way to auto make the above function to auto
export meeting.org each time without opening it first?

thx

Z

On Wed, Jul 13, 2016 at 6:27 PM, Philip Hudson <phil.hudson@iname.com>
wrote:

> You have _two_ concerns here. First is what to do when you save
> "meetings.org", second is what to do every half hour. Your code
> handles both of them, essentially correctly, but in the wrong place.
>
> On 13 July 2016 at 09:41, Xebar Saram <zeltakc@gmail.com> wrote:
> > Thx
> >
> > i do have this now
> >
> >   (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"))
>
> This means the code will only execute if the current buffer is
> "meetings.org" when it executes. That _is_ what you want when you save
> meetings.org, but it _is not_ what you want when the timer executes.
>
> Break out the body of the `when' form into its own function, and call
> that function from the timer, instead of `z/save-meeting-to-ics'.
>
> >  (rename-file (org-icalendar-export-to-ics)
> > "/home/zeltak/org/files/export/kcal.ics")
> >       (message "exported to ics")))
> >
> > ;;run every 30 minutes
> >
> > (run-with-timer 0 (* 30 60) 'z/save-meeting-to-ics)
> > ;;(run-with-idle-timer 600 t #'org-agenda-redo) ;; to rebuild it every
> 600
> > second
> > ;;  (add-hook 'after-save-hook #'z/save-meeting-to-ics)
> >
> > yet i cant get the ics file to be created niether when i save the
> > meeting.org file
>
> For this, you need to add `z/save-meeting-to-ics' to the Emacs global
> variable `after-save-hook' using function `add-hook'.
>
> > nor every 600 seconds.
>
> You mean 1800 seconds, I think.
>
> > what am i missing here?
> >
> > thx
> >
> > Z
> >
> > On Sun, Jun 26, 2016 at 9:49 PM, Philip Hudson <phil.hudson@iname.com>
> > wrote:
> >>
> >> On 26 June 2016 at 16:38, Xebar Saram <zeltakc@gmail.com> 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
> >>
> >> For 1), change:
> >>
> >>     (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
> >
> >
>
>
>
> --
> Phil Hudson                   http://hudson-it.ddns.net
> @UWascalWabbit                 PGP/GnuPG ID: 0x887DCA63
>

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

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

* Re: export to ics a specific buffer every X hours
  2016-08-25  7:32       ` Xebar Saram
@ 2016-08-30 13:39         ` Xebar Saram
  2016-08-30 13:50           ` John Kitchin
  0 siblings, 1 reply; 8+ messages in thread
From: Xebar Saram @ 2016-08-30 13:39 UTC (permalink / raw)
  To: Philip Hudson; +Cc: org mode

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

anyone? kinda stuck here :)

thx!


z

On Thu, Aug 25, 2016 at 10:32 AM, Xebar Saram <zeltakc@gmail.com> wrote:

> Hi again all
>
> so i have a related question so ill continue in this thread. i have been
> using this command succesfully in the last few weeks
>
> (defun z/export-to-ics ()
> (interactive)
> (rename-file (org-icalendar-export-to-ics)
> "/home/zeltak/org/files/export/kcal.ics")
> (message "exported to ics"))
>
>
> this forces me to first open the file i want (meetings.org) and then
> launch the above command. is there a way to auto make the above function to
> auto export meeting.org each time without opening it first?
>
> thx
>
> Z
>
> On Wed, Jul 13, 2016 at 6:27 PM, Philip Hudson <phil.hudson@iname.com>
> wrote:
>
>> You have _two_ concerns here. First is what to do when you save
>> "meetings.org", second is what to do every half hour. Your code
>> handles both of them, essentially correctly, but in the wrong place.
>>
>> On 13 July 2016 at 09:41, Xebar Saram <zeltakc@gmail.com> wrote:
>> > Thx
>> >
>> > i do have this now
>> >
>> >   (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"))
>>
>> This means the code will only execute if the current buffer is
>> "meetings.org" when it executes. That _is_ what you want when you save
>> meetings.org, but it _is not_ what you want when the timer executes.
>>
>> Break out the body of the `when' form into its own function, and call
>> that function from the timer, instead of `z/save-meeting-to-ics'.
>>
>> >  (rename-file (org-icalendar-export-to-ics)
>> > "/home/zeltak/org/files/export/kcal.ics")
>> >       (message "exported to ics")))
>> >
>> > ;;run every 30 minutes
>> >
>> > (run-with-timer 0 (* 30 60) 'z/save-meeting-to-ics)
>> > ;;(run-with-idle-timer 600 t #'org-agenda-redo) ;; to rebuild it every
>> 600
>> > second
>> > ;;  (add-hook 'after-save-hook #'z/save-meeting-to-ics)
>> >
>> > yet i cant get the ics file to be created niether when i save the
>> > meeting.org file
>>
>> For this, you need to add `z/save-meeting-to-ics' to the Emacs global
>> variable `after-save-hook' using function `add-hook'.
>>
>> > nor every 600 seconds.
>>
>> You mean 1800 seconds, I think.
>>
>> > what am i missing here?
>> >
>> > thx
>> >
>> > Z
>> >
>> > On Sun, Jun 26, 2016 at 9:49 PM, Philip Hudson <phil.hudson@iname.com>
>> > wrote:
>> >>
>> >> On 26 June 2016 at 16:38, Xebar Saram <zeltakc@gmail.com> 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
>> >>
>> >> For 1), change:
>> >>
>> >>     (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
>> >
>> >
>>
>>
>>
>> --
>> Phil Hudson                   http://hudson-it.ddns.net
>> @UWascalWabbit                 PGP/GnuPG ID: 0x887DCA63
>>
>
>

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

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

* Re: export to ics a specific buffer every X hours
  2016-08-30 13:39         ` Xebar Saram
@ 2016-08-30 13:50           ` John Kitchin
  2016-08-30 13:59             ` Xebar Saram
  0 siblings, 1 reply; 8+ messages in thread
From: John Kitchin @ 2016-08-30 13:50 UTC (permalink / raw)
  To: Xebar Saram; +Cc: org mode, Philip Hudson

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

I can't tell exactly what you have in mind. Can't you just add (find-file "
meetings.org") to the function?

or wrap the whole thing like this:


(defun z/export-to-ics ()
(interactive)
(with-current-buffer (find-file-noselect "meetings.org")
(rename-file (org-icalendar-export-to-ics)
"/home/zeltak/org/files/export/kcal.ics")
(message "exported to ics")))


John

-----------------------------------
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu


On Tue, Aug 30, 2016 at 9:39 AM, Xebar Saram <zeltakc@gmail.com> wrote:

> anyone? kinda stuck here :)
>
> thx!
>
>
> z
>
> On Thu, Aug 25, 2016 at 10:32 AM, Xebar Saram <zeltakc@gmail.com> wrote:
>
>> Hi again all
>>
>> so i have a related question so ill continue in this thread. i have been
>> using this command succesfully in the last few weeks
>>
>> (defun z/export-to-ics ()
>> (interactive)
>> (rename-file (org-icalendar-export-to-ics)
>> "/home/zeltak/org/files/export/kcal.ics")
>> (message "exported to ics"))
>>
>>
>> this forces me to first open the file i want (meetings.org) and then
>> launch the above command. is there a way to auto make the above function to
>> auto export meeting.org each time without opening it first?
>>
>> thx
>>
>> Z
>>
>> On Wed, Jul 13, 2016 at 6:27 PM, Philip Hudson <phil.hudson@iname.com>
>> wrote:
>>
>>> You have _two_ concerns here. First is what to do when you save
>>> "meetings.org", second is what to do every half hour. Your code
>>> handles both of them, essentially correctly, but in the wrong place.
>>>
>>> On 13 July 2016 at 09:41, Xebar Saram <zeltakc@gmail.com> wrote:
>>> > Thx
>>> >
>>> > i do have this now
>>> >
>>> >   (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"))
>>>
>>> This means the code will only execute if the current buffer is
>>> "meetings.org" when it executes. That _is_ what you want when you save
>>> meetings.org, but it _is not_ what you want when the timer executes.
>>>
>>> Break out the body of the `when' form into its own function, and call
>>> that function from the timer, instead of `z/save-meeting-to-ics'.
>>>
>>> >  (rename-file (org-icalendar-export-to-ics)
>>> > "/home/zeltak/org/files/export/kcal.ics")
>>> >       (message "exported to ics")))
>>> >
>>> > ;;run every 30 minutes
>>> >
>>> > (run-with-timer 0 (* 30 60) 'z/save-meeting-to-ics)
>>> > ;;(run-with-idle-timer 600 t #'org-agenda-redo) ;; to rebuild it every
>>> 600
>>> > second
>>> > ;;  (add-hook 'after-save-hook #'z/save-meeting-to-ics)
>>> >
>>> > yet i cant get the ics file to be created niether when i save the
>>> > meeting.org file
>>>
>>> For this, you need to add `z/save-meeting-to-ics' to the Emacs global
>>> variable `after-save-hook' using function `add-hook'.
>>>
>>> > nor every 600 seconds.
>>>
>>> You mean 1800 seconds, I think.
>>>
>>> > what am i missing here?
>>> >
>>> > thx
>>> >
>>> > Z
>>> >
>>> > On Sun, Jun 26, 2016 at 9:49 PM, Philip Hudson <phil.hudson@iname.com>
>>> > wrote:
>>> >>
>>> >> On 26 June 2016 at 16:38, Xebar Saram <zeltakc@gmail.com> 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
>>> >>
>>> >> For 1), change:
>>> >>
>>> >>     (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
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> Phil Hudson                   http://hudson-it.ddns.net
>>> @UWascalWabbit                 PGP/GnuPG ID: 0x887DCA63
>>>
>>
>>
>

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

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

* Re: export to ics a specific buffer every X hours
  2016-08-30 13:50           ` John Kitchin
@ 2016-08-30 13:59             ` Xebar Saram
  0 siblings, 0 replies; 8+ messages in thread
From: Xebar Saram @ 2016-08-30 13:59 UTC (permalink / raw)
  To: John Kitchin; +Cc: org mode, Philip Hudson

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

Thx John, this is *exactly* what i wanted...its just as always my wishes
and code skills dont align

thx so much again

Z


On Tue, Aug 30, 2016 at 4:50 PM, John Kitchin <jkitchin@andrew.cmu.edu>
wrote:

>
> (defun z/export-to-ics ()
> (interactive)
> (with-current-buffer (find-file-noselect "meetings.org")
> (rename-file (org-icalendar-export-to-ics)
> "/home/zeltak/org/files/export/kcal.ics")
> (message "exported to ics")))
>

[-- Attachment #2: Type: text/html, Size: 1294 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).