emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tim Burt <tcburt@rochester.rr.com>
To: Richard Riley <rileyrg@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Blogging org entries using google command line.
Date: Wed, 08 Sep 2010 22:04:45 -0400	[thread overview]
Message-ID: <87vd6foeo2.fsf@rochester.rr.com> (raw)
In-Reply-To: <i69bt5$dji$1@dough.gmane.org> (Richard Riley's message of "Thu, 09 Sep 2010 03:05:40 +0200")

Richard Riley <rileyrg@gmail.com> writes:

> Tim Burt <tcburt@rochester.rr.com> writes:
>
>> Could Richard Riley have solved my problem?  Yes he did.
>> http://naturallogofx.rketburt.org/2010/09/could-richard-riley-have-solved-my.html
>
> Glad its of some use. It (googlecl) has been on my "must check it out"
> list for a while ;)
>
> Its just at test stage but taking shape - I'm having to relearn elisp
> again ... I'll "git" (!) it in the next few days. But here's the latest code
> posted using itself and cleaned up a bit. Note the two defvars to
> set. You can prefix (C-u) the call to get prompted for the blog name. 
>
> http://splash-of-open-sauce.blogspot.com/2010/09/improved-code-for-googlecl-blog_08.html

Nice improvements.  Will use.

> As a side note, I intend to create a module org-googlecl (org google
> command line) with corresponding namespace for customisations. I'm sure
> then that people more familiar with the publishing portion of org can
> supe it up a bit more.

I look forward to that.  

Again, many thanks.

>
> cheers
>
> r.
>
>>
>> Thank you, thank you, thank you,
>> Tim
>>
>> Richard Riley <rileyrg@gmail.com> 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.
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>

  reply	other threads:[~2010-09-09  2:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-08 21:11 Blogging org entries using google command line Richard Riley
2010-09-08 22:32 ` Eric Schulte
2010-09-09  0:12   ` Richard Riley
2010-09-09  0:30 ` Tim Burt
2010-09-09  1:05   ` Richard Riley
2010-09-09  2:04     ` Tim Burt [this message]
2010-09-09  3:35       ` Richard Riley
2010-09-10  8:01         ` Yavuz Arkun
2010-09-10 17:00           ` Richard Riley
2010-09-12 16:40         ` David Maus
2010-09-12 16:57           ` Richard Riley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vd6foeo2.fsf@rochester.rr.com \
    --to=tcburt@rochester.rr.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=rileyrg@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).