Skip to content

Instantly share code, notes, and snippets.

@typester
Created August 6, 2009 02:33
Show Gist options
  • Save typester/163090 to your computer and use it in GitHub Desktop.
Save typester/163090 to your computer and use it in GitHub Desktop.
(defun appkido-lookup (word)
"search appkido"
(interactive
(let* ((cur (substring-no-properties (or (thing-at-point 'word) "")))
(val (read-string (if (string-match "^[0-9A-Za-z_]+$" cur)
(format "AppKido Lookup (default %s): " cur)
"AppKido Lookup: ") nil nil cur)))
(list val)))
(do-applescript (format "tell application \"AppKiDo-for-iPhone\"
activate
search \"%s\"
end tell" word)))
(provide 'appkido)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment