Growl is installed and running find with other apps.
Started to use Powermail and have the
script for Growl Notification in the Powermail/scripts folder.
I have a filter set up so that Powermail should run the script upon getting new mail.
But not notification are being displayed.
Is it more or did I forget to turn something "on"
Growl and Powermail (no notifications)
-
justin.beek
- Harmless
- Posts: 2
- Joined: Thu Apr 13, 2006 4:45 pm
- Location: Middle of KS
Need to tweak script
You need to replace the Tell code with the three lines below. WATCH THE LINE BREAKS!
(I am also emailing the Growl folks so they can update their script)
tell application "GrowlHelperApp"
set myAllNotesList to {"Mail Received"}
register as application "PowerMail Notification Script" all notifications myAllNotesList default notifications myAllNotesList icon of application "PowerMail.app"
notify with name "Mail Received" title f description s application name "PowerMail Notification Script"
(I am also emailing the Growl folks so they can update their script)
tell application "GrowlHelperApp"
set myAllNotesList to {"Mail Received"}
register as application "PowerMail Notification Script" all notifications myAllNotesList default notifications myAllNotesList icon of application "PowerMail.app"
notify with name "Mail Received" title f description s application name "PowerMail Notification Script"
Thanks Justin,
Tried it last night. Still not working right even though:
1. I made sure the script was correct and it compiled corretly.
2. I have it set as a rule that when anything arrives, growl should notify me.
I even tried adjusting the rule so that growl would do it by account (so that when something arrived from account "gmail" it would run the script.
Ted
Tried it last night. Still not working right even though:
1. I made sure the script was correct and it compiled corretly.
2. I have it set as a rule that when anything arrives, growl should notify me.
I even tried adjusting the rule so that growl would do it by account (so that when something arrived from account "gmail" it would run the script.
Ted
-
justin.beek
- Harmless
- Posts: 2
- Joined: Thu Apr 13, 2006 4:45 pm
- Location: Middle of KS
Compare the syntax
Here is my script that works as a filter with the following:
PowerMail version 5.2.3 build 4406 English
Mac OS version: 10.4.6
PowerMail version 5.2.3 build 4406 English
Mac OS version: 10.4.6
Code: Select all
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"
set myAllNotesList to {"Mail Received"}
register as application "PowerMail Notification Script" all notifications myAllNotesList default notifications myAllNotesList icon of application "PowerMail.app"
notify with name "Mail Received" title f description s application name "PowerMail Notification Script"
end tell
if fl_Simple then -- run only with the first message
exit repeat
end if
end repeat
end tell