[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Blogging org entries using google command line.
From: |
Tim Burt |
Subject: |
Re: [Orgmode] Blogging org entries using google command line. |
Date: |
Wed, 08 Sep 2010 20:30:10 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Could Richard Riley have solved my problem? Yes he did.
http://naturallogofx.rketburt.org/2010/09/could-richard-riley-have-solved-my.html
Thank you, thank you, thank you,
Tim
Richard Riley <address@hidden> writes:
> Using the google command line you can get some super access to all your
> Google resources - including docs, calendars & blogs.
>
> http://code.google.com/p/googlecl/
>
> Once you have installed it and set up your OAUTH you can easily
> manipulate/add/delete things in your google hosted data.
>
> While not polished and featuring hard coded blog name the following
> function uses the google command line tool to blog the current
> org-entry.
>
> (defun rgr/org-blog-entry ()
> (interactive)
> (save-excursion
> (let ((tmpheading (org-get-heading)))
> (goto-char (org-entry-beginning-position))
> (set-mark (org-entry-end-position))
> (let*((tmpfile (make-temp-file "org-blog-html-"))
> (blog-command (concat "google blogger post --blog \"Open
> Sauce\" --title '" tmpheading "' " tmpfile )))
> (org-export-as-html 1 nil nil (find-file-noselect tmpfile) t)
> (with-current-buffer (get-file-buffer tmpfile) (save-buffer))
> (start-process-shell-command "Google Blog" "*googlecl*"
> blog-command)))))
>
> At some point I'll try and make it more generic with customised options
> if no one beats me to it ..
>
> regards
>
> r.
- [Orgmode] Blogging org entries using google command line., Richard Riley, 2010/09/08
- Re: [Orgmode] Blogging org entries using google command line., Eric Schulte, 2010/09/08
- Re: [Orgmode] Blogging org entries using google command line.,
Tim Burt <=
- [Orgmode] Re: Blogging org entries using google command line., Richard Riley, 2010/09/08
- Re: [Orgmode] Re: Blogging org entries using google command line., Tim Burt, 2010/09/08
- [Orgmode] Re: Blogging org entries using google command line., Richard Riley, 2010/09/08
- [Orgmode] Re: Blogging org entries using google command line., Yavuz Arkun, 2010/09/10
- [Orgmode] Re: Blogging org entries using google command line., Richard Riley, 2010/09/10
- Re: [Orgmode] Re: Blogging org entries using google command line., David Maus, 2010/09/12
- [Orgmode] Re: Blogging org entries using google command line., Richard Riley, 2010/09/12