powermail-discuss Digest #2544 - Friday, January 12, 2007

  Re: How to set up Growl?
          by "Sean McBride" <[EMAIL PROTECTED]>
  Re: How to set up Growl?
          by "Justin Beek" <[EMAIL PROTECTED]>


----------------------------------------------------------------------

Subject: Re: How to set up Growl?
From: "Sean McBride" <[EMAIL PROTECTED]>
Date: Thu, 11 Jan 2007 21:17:46 -0500

[EMAIL PROTECTED] ([EMAIL PROTECTED]) on 2007-01-11
13:00 said:

>I just installed Growl and the PM script. I made some corrections to the
>script, as found in some places on the internet (among other, this list
>archives ...).
>The result is : I can see in Console that Growl receives the commands
>from PM (registering, message), but I never see a single bubble or
>whatever appear on the screen ... Maybe it's a Growl problem, I tried
>many things, but didn't found the way.
>Any advice ?

I had a hell of a time too, I forget how I got it working.  Did you
check this list's archives, the answer should be there.

Sean

--
"attack begets defence, whereas courtesy begets respect"




----------------------------------------------------------------------

Subject: Re: How to set up Growl?
From: "Justin Beek" <[EMAIL PROTECTED]>
Date: Fri, 12 Jan 2007 07:42:25 -0600

here's what my older, but working, script is:
<CODE>
tell application "PowerMail"

        -- this script offers rudimentary use of Growl: [url]http://
growl.info[/url]
        -- At the time of writing, Growl is at version 0.5
        -- See the site for more info about Growl, the global notification
system for OS X.
        -- Cobbled together by Robert Black ([url]http://
www.robertblack.com.au[/url]), based on an example script
        -- included with PowerMail.

        -- PowerMail info: [url]http://www.ctmdev.com/[/url]


        -- To use this script, you must first have Growl installed. See [url]
http://growl.info/downloads.php[/url]
        -- Next, copy this script to ~/Mail/PowerMail Files/Custom Scripts/
Growl.scpt
        -- Then in PowerMail set up a Filter with an "Execute AppleScript"
action, and choose "Growl"
        -- If "Growl" isn't in the list of scripts, quit and relaunch PowerMail

        -- Now, when one or more emails arrive, which match your filter's
"Conditions", Growl will
        -- display the Sender and Subject of the first email to you.

        set theMessages to current messages
        if the number of items of theMessages is 0 then
                display dialog "Error - This is meant to be called by a filter."
        end if

        set fl_Simple to true
        -- In my experience it's not a good idea to repeat this if multiple
emails arrive at the same time,
        -- since the notifications are sequential, but the code's here if
you want to try it.
        -- Just change to "set fl_Simple to false"


        repeat with msg in theMessages
                set s to subject of msg
                set f to sender of msg
                set f to display name of f
                tell application "GrowlHelperApp"
                        notify title f description s icon of application 
"PowerMail.app"
                end tell
                if fl_Simple then -- run only with the first message
                        exit repeat
                end if
        end repeat

end tell
</CODE>

On Jan 11, 2007, at 8:17 PM, Sean McBride wrote:

>
>
> I had a hell of a time too, I forget how I got it working.  Did you
> check this list's archives, the answer should be there.
>
>



----------------------------------------------------------------------
End of powermail-discuss Digest

Reply via email to