2634
Comment: push down into growl subpage
|
← Revision 4 as of 2008-11-15 14:00:05 ⇥
2644
converted to 1.6 markup
|
Deletions are marked like this. | Additions are marked like this. |
Line 8: | Line 8: |
|| '''Suites''' || [#suite_Growl Growl] || || '''Commands''' || [#command_notify notify] [#command_register register] || || '''Classes''' || [#class_Image Image] [#class_Picture Picture] || |
|| '''Suites''' || [[#suite_Growl|Growl]] || || '''Commands''' || [[#command_notify|notify]] [[#command_register|register]] || || '''Classes''' || [[#class_Image|Image]] [[#class_Picture|Picture]] || |
Line 13: | Line 13: |
[[Anchor(suite_Growl)]] | <<Anchor(suite_Growl)>> |
Line 19: | Line 19: |
[[Anchor(command_notify)]]'''application.notify(...)''' -- Post a notification to be displayed via Growl[[BR]] '''with_name'''=''Text'' -- name of the notification to display[[BR]] '''title'''=''Text'' -- title of the notification to display[[BR]] '''description'''=''Text'' -- full text of the notification to display[[BR]] '''application_name'''=''Text'' -- name of the application posting the notification.[[BR]] ['''image_from_location'''=''InsertionLoc''] -- Location of the image file to use for this notification. Accepts aliases, paths and file:/// URLs.[[BR]] ['''icon_of_file'''=''InsertionLoc''] -- Location of the file whose icon should be used as the image for this notification. Accepts aliases, paths and file:/// URLs. e.g. 'file:///Applications'.[[BR]] ['''icon_of_application'''=''Text''] -- Name of the application whose icon should be used for this notification. For example, 'Mail.app'.[[BR]] ['''image'''=''k.Image''] -- TIFF Image to be used for the notification.[[BR]] ['''pictImage'''=''k.Picture''] -- PICT Image to be used for the notification.[[BR]] ['''sticky'''=''Boolean''] -- whether or not the notification displayed should time out. Defaults to 'no'.[[BR]] ['''priority'''=''SInt32''] -- The priority of the notification, from -2 (low) to 0 (normal) to 2 (emergency).[[BR]] |
<<Anchor(command_notify)>>'''application.notify(...)''' -- Post a notification to be displayed via Growl<<BR>> '''with_name'''=''Text'' -- name of the notification to display<<BR>> '''title'''=''Text'' -- title of the notification to display<<BR>> '''description'''=''Text'' -- full text of the notification to display<<BR>> '''application_name'''=''Text'' -- name of the application posting the notification.<<BR>> ['''image_from_location'''=''InsertionLoc''] -- Location of the image file to use for this notification. Accepts aliases, paths and file:/// URLs.<<BR>> ['''icon_of_file'''=''InsertionLoc''] -- Location of the file whose icon should be used as the image for this notification. Accepts aliases, paths and file:/// URLs. e.g. 'file:///Applications'.<<BR>> ['''icon_of_application'''=''Text''] -- Name of the application whose icon should be used for this notification. For example, 'Mail.app'.<<BR>> ['''image'''=''k.Image''] -- TIFF Image to be used for the notification.<<BR>> ['''pictImage'''=''k.Picture''] -- PICT Image to be used for the notification.<<BR>> ['''sticky'''=''Boolean''] -- whether or not the notification displayed should time out. Defaults to 'no'.<<BR>> ['''priority'''=''SInt32''] -- The priority of the notification, from -2 (low) to 0 (normal) to 2 (emergency).<<BR>> |
Line 33: | Line 33: |
[[Anchor(command_register)]]'''application.register(...)''' -- Register an application with Growl[[BR]] '''as_application'''=''Text'' -- name of the application as which to register.[[BR]] '''all_notifications'''=''list of Text'' -- list of all notifications to register.[[BR]] '''default_notifications'''=''list of Text'' -- list of default notifications to register.[[BR]] ['''icon_of_application'''=''Text''] -- Name of the application whose icon should be used for this notification. For example, 'Mail.app'.[[BR]] |
<<Anchor(command_register)>>'''application.register(...)''' -- Register an application with Growl<<BR>> '''as_application'''=''Text'' -- name of the application as which to register.<<BR>> '''all_notifications'''=''list of Text'' -- list of all notifications to register.<<BR>> '''default_notifications'''=''list of Text'' -- list of default notifications to register.<<BR>> ['''icon_of_application'''=''Text''] -- Name of the application whose icon should be used for this notification. For example, 'Mail.app'.<<BR>> |
Line 43: | Line 43: |
[[Anchor(class_Picture)]]'''Picture''' | <<Anchor(class_Picture)>>'''Picture''' |
Line 46: | Line 46: |
[[Anchor(class_Image)]]'''Image''' | <<Anchor(class_Image)>>'''Image''' |
(GrowlHelperApp.app terminology, generated from /Library/PreferencePanes/Growl.prefPane/Contents/Resources/GrowlHelperApp.app)
Growl
AppleScript for the Growl Notification System
Commands
application.notify(...) -- Post a notification to be displayed via Growl
with_name=Text -- name of the notification to display
title=Text -- title of the notification to display
description=Text -- full text of the notification to display
application_name=Text -- name of the application posting the notification.
[image_from_location=InsertionLoc] -- Location of the image file to use for this notification. Accepts aliases, paths and file:/// URLs.
[icon_of_file=InsertionLoc] -- Location of the file whose icon should be used as the image for this notification. Accepts aliases, paths and file:/// URLs. e.g. 'file:///Applications'.<<BR>> [icon_of_application=Text] -- Name of the application whose icon should be used for this notification. For example, 'Mail.app'.
[image=k.Image] -- TIFF Image to be used for the notification.
[pictImage=k.Picture] -- PICT Image to be used for the notification.
[sticky=Boolean] -- whether or not the notification displayed should time out. Defaults to 'no'.
[priority=SInt32] -- The priority of the notification, from -2 (low) to 0 (normal) to 2 (emergency).
Result: None
application.register(...) -- Register an application with Growl
as_application=Text -- name of the application as which to register.
all_notifications=list of Text -- list of all notifications to register.
default_notifications=list of Text -- list of default notifications to register.
[icon_of_application=Text] -- Name of the application whose icon should be used for this notification. For example, 'Mail.app'.
Result: None
Classes
Picture
Image