Skip to content

Instantly share code, notes, and snippets.

@dustinlacewell-wk
Created February 3, 2018 21:32
Show Gist options
  • Save dustinlacewell-wk/0e77faadad501866a9c29977aa0f4940 to your computer and use it in GitHub Desktop.
Save dustinlacewell-wk/0e77faadad501866a9c29977aa0f4940 to your computer and use it in GitHub Desktop.
#+begin_src emacs-lisp
(defun org-babel-execute:apples (body params)
"Execute a block of Foma code with org-babel."
(message "executing applescript source code block")
(message (cddr (third (first params))))
(do-applescript body))
#+end_src
#+begin_src elisp :var app="Google Chrome" foo="bar"
tell application app to open "http://bing.com"
#+end_src
executing Elisp code block...
(app (quote "Google Chrome"))
(foo (quote "bar"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment