From: "Jonathan Arkell" <jonathana@criticalmass.com>
To: emacs-orgmode@gnu.org
Subject: RE: MacOSX: Notifications with Growl
Date: Fri, 7 Nov 2008 11:10:56 -0500 [thread overview]
Message-ID: <5146889A6969A24D82AFD05233CF024F0128EF43@Haze.cmass.criticalmass.com> (raw)
In-Reply-To: <491425C2.4020706@calicojack.co.uk>
[-- Attachment #1: Type: text/plain, Size: 1945 bytes --]
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: emacs-orgmode-bounces+jonathana=criticalmass.com@gnu.org [mailto:emacs-orgmode-bounces+jonathana=criticalmass.com@gnu.org] 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
[-- Attachment #2: Type: text/plain, Size: 204 bytes --]
_______________________________________________
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
prev parent reply other threads:[~2008-11-07 16:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-03 15:49 MacOSX: Notifications with Growl Alex Ott
2008-11-03 17:22 ` Christopher Suckling
2008-11-07 11:25 ` Rick Moynihan
2008-11-07 16:10 ` Jonathan Arkell [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5146889A6969A24D82AFD05233CF024F0128EF43@Haze.cmass.criticalmass.com \
--to=jonathana@criticalmass.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.