From: Chris Ridd on
On 2010-03-26 14:32:14 +0000, zoara said:

> Tim Hodgson <thnews(a)poboxmolar.com.invalid> wrote:
>> I know about GrowlMail, but unless I'm missing something, that just
>> throws up alerts for every single mail that arrives, which strikes me
>> as
>> less than useful, to put it politely.
>
> Uh huh.

Especially when your mail arrives in a batch, and your screen fills up
with notifications about each and every spam :-)

--
Chris

From: zoara on
zoara <me18(a)privacy.net> wrote:
>
> There's a guy out there who
> specialises in Mail scripts but I can't for the life of me remember
> his
> name, but Google will turn up a wealth of Mail scripts.

Ah, I was thinking of "Doug" but he only does iTunes AppleScripts...

-z-


--
email: nettid1 at fastmail dot fm
From: Jochem Huhmann on
thnews(a)poboxmolar.com.invalid (Tim Hodgson) writes:

> Has anyone found (or written??) an Applescript that can be run by a Mail
> rule to trigger a Growl alert?

on perform_mail_action(info)
tell application "Mail"
set selectedMessages to |SelectedMessages| of info
set theRule to |Rule| of info
repeat with thisMessage in selectedMessages
set theSubject to subject of thisMessage
set theSender to sender of thisMessage
set theText to (content of thisMessage)
set olddelim to AppleScript's text item delimiters
set AppleScript's text item delimiters to " "
try
set theSummary to (text items 1 through 20 of theText) as text
on error
set theSummary to theText
end try
set AppleScript's text item delimiters to olddelim
tell application "GrowlHelperApp"
set the allNotificationsList to {"New Mail"}
set the enabledNotificationsList to {"New Mail"}
register as application "MailNotify" all notifications allNotificationsList default notifications enabledNotificationsList icon of application "Mail"
notify with name "New Mail" title theSubject description "✉ " & theSender & return & theSummary application name "MailNotify"
end tell
end repeat
end tell
end perform_mail_action




Jochem

--
"A designer knows he has arrived at perfection not when there is no
longer anything to add, but when there is no longer anything to take away."
- Antoine de Saint-Exupery
From: Jochem Huhmann on
thnews(a)poboxmolar.com.invalid (Tim Hodgson) writes:

> Jochem Huhmann <joh(a)gmx.net> wrote:
>
>> thnews(a)poboxmolar.com.invalid (Tim Hodgson) writes:
>>
>> > Has anyone found (or written??) an Applescript that can be run by a Mail
>> > rule to trigger a Growl alert?
>>
> <script snipped>
>
> Fantastic - thank you!
>
> (I've named the script in your honour :)

Rename it to the honour of the unknown poster somewhere in the net
because that's where I got it from, I think ;-)

> By the way, in the line:
>
> notify with name "New Mail" title theSubject description "? " &
> theSender & return & theSummary application name "MailNotify"
>
> what's the purpose of the question mark?

It's just a decorative character that somehow vanished in the post and
got replaced by a question mark then. I pulled something out from the OS
X character panel (a mail envelope in fact) to have something nice to
mark the sender of the email in the Growl notification. Look for some
nice character for that or just replace "? " by "-> " or something
similar. It's just decoration. You can also put theSender in the title
instead of theSubject or whatever you like.


Jochem

--
"A designer knows he has arrived at perfection not when there is no
longer anything to add, but when there is no longer anything to take away."
- Antoine de Saint-Exupery
From: Sara on
In article
<1494239223291329257.659246me18-privacy.net(a)news.individual.net>,
zoara <me18(a)privacy.net> wrote:

> zoara <me18(a)privacy.net> wrote:
> >
> > There's a guy out there who
> > specialises in Mail scripts but I can't for the life of me remember
> > his
> > name, but Google will turn up a wealth of Mail scripts.
>
> Ah, I was thinking of "Doug" but he only does iTunes AppleScripts...
>
> -z-

Andreas Amann may be the person you're thinking of
<http://homepage.mac.com/aamann/>

--
Sara

Hurrah - the weather has cheered up