That's perfect, thanks!

On Tuesday, February 9, 2016, John Kitchin <jkitchin@andrew.cmu.edu> wrote:
I posted this answer on SO:

(defun open-id (id)
  (org-id-goto id)
  (message "%s" (current-buffer)))

It seems to do what you want.

Alan Parker Lue writes:

> Trying to figure out how to switch buffers when visiting an entry given an
> ID in Elisp. To elaborate:
>
> http://stackoverflow.com/questions/35299171/org-mode-elisp-how-does-one-switch-the-buffer-when-using-an-id-to-visit-an-en
>
> Does anyone have an answer for this?


--
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