Specifying a POSIX path (other than one starting with /System(!)) results
in a spurious complaint about the image type ("Supplied file is not a valid
image type").
The sample that comes with the SDK *does *work, but if you copy the very
same image
("/System/Library/CoreServices/loginwindow.app/Contents/Resources/LogOut.png")
to, say, "/Users/jdoe", the command breaks.
*notify* with name ¬
> "Test Notification" title ¬
> "Test Notification" description ¬
> "Icon from POSIX path." application name "Growl AppleScript Sample" image
> from location "/Users/jdoe/LogOut.png"
The above fails unexpectedly.
By contrast, using the following technique *does* work (HFS-style path
coerced to an alias) with the very same file:
*notify* with name ¬
> "Test Notification" title ¬
> "Test Notification" description ¬
> "Icon from POSIX path." application name "Growl AppleScript Sample" image
> from location (":Users:jdoe:LogOut.png" *as* *alias*)
Incidentally, specifying an HFS-style path *as text *does *not *work. If
this is by design, it should be made clearer in Growl's AppleScript
dictionary, which generically lists "paths" as accepted input.
--
You received this message because you are subscribed to the Google Groups
"Growl Discuss" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/growldiscuss/-/uo3GIQxPzkIJ.
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.