Hmm - I can't replicate that.

Does it work with this script?

tell application "System Events"
        set isRunning to (count of (every process whose bundle identifier is
"com.Growl.GrowlHelperApp")) > 0
end tell

if isRunning then
        tell application id "com.Growl.GrowlHelperApp"
                -- Make a list of all the notification types
                -- that this script will ever send:
                set the allNotificationsList to ¬
                        {"Test Notification", "Another Test Notification"}

                -- Make a list of the notifications
                -- that will be enabled by default.
                -- Those not enabled by default can be enabled later
                -- in the 'Applications' tab of the Growl preferences.
                set the enabledNotificationsList to ¬
                        {"Test Notification"}

                -- Register our script with growl.
                -- You can optionally (as here) set a default icon
                -- for this script's notifications.
                register as application ¬
                        "aaaAaardvark" all notifications allNotificationsList ¬
                        default notifications enabledNotificationsList ¬
                        icon of application "iCal"

                --       Send a Notification...
                notify with name ¬
                        "Test Notification" title ¬
                        "Test Notification" description ¬
                        "Message." application name "aaaAaardvark"

                notify with name ¬
                        "Another Test Notification" title ¬
                        "Another Test Notification :) " description ¬
                        "Alas — you won't see me until you enable me..." 
application name
"aaaAaardvark"

        end tell
end if




On Feb 1, 11:50 am, Jono <[email protected]> wrote:
> I'm making AppleScript notifications with Growl using the Sample
> AppleScript Notification
> herehttp://growl.info/documentation/applescript-support.php
> The only things I'm changing are the application name, message, and "icon
> of application" parts.
> Every time I run the script it will run successfully once and then after
> that throws up an error message:
>
> Exception raised while processing: -
> [_NSCFDictionary setObject:forKey:]: attempt to insert nil value (key:
> Applicationicon)
>
> If I restart Growl and run the script again it will run and work OK once,
> and then show the same error message again until I restart Growl.
> Is this a bug? Does this happen for anyone else?

-- 
You received this message because you are subscribed to the Google Groups 
"Growl Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/growldiscuss?hl=en.

Reply via email to