Re: [Orgmode] MacOSX: Notifications with Growl

2008-11-07 Thread Rick Moynihan

Alex Ott wrote:

Hi all

I wrote small note about show notifications with Growl under Mac OS X.
This could be useful when using org-mode.  Note is could be found on my site
http://xtalk.msk.su/~ott/en/writings/EmacsMacOSXAndGrowl.html


Thanks for this, this'll prove handy at work.  I took the liberty of 
simplifying the elisp a little.  This version doesn't create a temporary 
file, and instead uses a shell HEREDOC.


(defun output-to-growl (msg)
(shell-command (format osascript ENDSCRIPT
tell application \GrowlHelperApp\
 notify with name \Emacs Notification\ title \Emacs alert\ \
   description «data utxt%s» as Unicode text \
   application name \Emacs\
   end tell
ENDSCRIPT  (osd-text-to-utf-16-hex msg

(defun osd-text-to-utf-16-hex (text)
  (let* ((utext (encode-coding-string text 'utf-16))
 (ltext (string-to-list utext)))
(apply #'concat
 (mapcar (lambda (x) (format %02x x)) ltext


R.


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


RE: [Orgmode] MacOSX: Notifications with Growl

2008-11-07 Thread Jonathan Arkell
I am chiming in a little late here, but...

Try out Todochiku, which is a notifications package I wrote for emacs:  
http://www.emacswiki.org/emacs/ToDoChiKu

It works with appt (and thus with org mode) and it is compatible across 
different notification programs (and OS).  It has a customization option 
todochiku-appts that will set up a growl notifier as your appt-display-function.

Enjoy.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rick Moynihan
Sent: Friday, November 07, 2008 4:26 AM
To: Alex Ott
Cc: emacs-orgmode@gnu.org
Subject: Re: [Orgmode] MacOSX: Notifications with Growl

Alex Ott wrote:
 Hi all
 
 I wrote small note about show notifications with Growl under Mac OS X.
 This could be useful when using org-mode.  Note is could be found on my site
 http://xtalk.msk.su/~ott/en/writings/EmacsMacOSXAndGrowl.html

Thanks for this, this'll prove handy at work.  I took the liberty of 
simplifying the elisp a little.  This version doesn't create a temporary 
file, and instead uses a shell HEREDOC.

(defun output-to-growl (msg)
 (shell-command (format osascript ENDSCRIPT
tell application \GrowlHelperApp\
  notify with name \Emacs Notification\ title \Emacs alert\ \
description «data utxt%s» as Unicode text \
application name \Emacs\
end tell
ENDSCRIPT  (osd-text-to-utf-16-hex msg

(defun osd-text-to-utf-16-hex (text)
   (let* ((utext (encode-coding-string text 'utf-16))
  (ltext (string-to-list utext)))
 (apply #'concat
  (mapcar (lambda (x) (format %02x x)) ltext


R.


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] MacOSX: Notifications with Growl

2008-11-03 Thread Alex Ott
Hi all

I wrote small note about show notifications with Growl under Mac OS X.
This could be useful when using org-mode.  Note is could be found on my site
http://xtalk.msk.su/~ott/en/writings/EmacsMacOSXAndGrowl.html

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/   http://xtalk.msk.su/~ott/
http://alexott-ru.blogspot.com/


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] MacOSX: Notifications with Growl

2008-11-03 Thread Christopher Suckling
On Mon, Nov 03, 2008 at 04:49:24PM +0100, Alex Ott wrote:

 Hi all
 
 I wrote small note about show notifications with Growl under Mac OS X.
 This could be useful when using org-mode.  Note is could be found on my site
 http://xtalk.msk.su/~ott/en/writings/EmacsMacOSXAndGrowl.html
 

Nice. Was looking to add this to my Quicksilver suite of scripts 

http://claviclaws.net/org

when I'm back from holiday. You've saved me a bit of effort!

Christopher



___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode