The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Extras
FAQ Members List Calendar Today's Posts

 
make OF action out of current emacs buffer Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
OK, Thanks to Curt and some of the code on this board, I hacked together a quick emacs script to note the current emacs buffer and make a new action. Comments welcome. No doubt my elisp is horrible...

Code:
(defun sendOmni () 
  (interactive)
  (let ((fname (buffer-file-name (current-buffer))))
	(do-applescript (concat "tell front document of application \"OmniFocus\" 
                set aTask to (make new inbox task with properties {name:\"From Emacs " 
				(buffer-name (current-buffer)) "\", note:\"file:///" fname "  \" })
                    tell note of aTask
		      make new file attachment with properties {file name:\"" fname "\"}
	            end tell
             end tell"))
	))
;; I use F3 for omnifocus clipping...
(global-set-key [f3] 'sendOmni)
 
 




Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature request: current action on-top sticky Craig OmniFocus 1 for Mac 7 2012-11-08 05:04 AM
Make "Paste With Current Style" the default? rogbar OmniOutliner 3 for Mac 2 2012-06-30 10:51 PM
On desktop banner of current action fathom OmniFocus 1 for Mac 26 2010-12-13 03:33 AM
Wanted: Growl-style bubble for current action matt_good OmniFocus Extras 18 2009-06-21 09:22 AM
Make "Paste w/Current Style" the default? Roger Barre OmniOutliner 3 for Mac 3 2007-07-17 11:59 AM


All times are GMT -8. The time now is 12:54 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.