HomeNotifier KindPort Notifier Plug-inSMS Notifier Plug-in
Simon > Fenêtre de Surveillance > Notifiers mode > Notifier Info pane > Notifier Kind Index

Script Notifier Plug-in

The Script plug-in is displayed when you choose Script in the Notifier Kind pop-up menu in the Notifier Info pane.

It allows extending Simon to do a virtually infinite range of notifications – anything that can be done in AppleScript, shell script, Perl, Python, etc, can be done here. This plug-in is basically the same as the Script Service Plug-in one, though there are a few minor differences.

Comments
The text area just below the Notifier Kind pop-up menu is where you can enter a brief description of the notifier. This is purely for your own information (or for others if you share your script).
Custom Variables
This table allows adding new variables to the Insert variable drop-down menu. Click the bouton [+]  button to add a line to the table, or the bouton [–]  button to remove the selected line. You'd typically use this to ask for the server to connect to, or other custom information needed by the script.
Insert variable
Variables are markers in the text that are replaced by another value when a filter, notifier or service is used. Use this menu to choose from the available variables. When one is chosen, it is inserted at the insertion point, or replaces the selected text. Refer to the Notifier Variables page for descriptions of the available variables.
Script type
Choose the type of script in this combo box. You can type the name, or click the menu on the right-hand side to display the available options. It displays the name of the tool, and its path. You can also specify a tool not listed by typing its path, but if you might want to use it again, you can add it to the default list via the Script Preferences.
Script editor
Write your script here. You can insert variables like those shown between braces. See the Insert variable item above, or expert users can type them directly. You can change the font, size, and colors of this text area in the Script Preferences.
Run
Click this button to try out the script. Simon will display a Aperçu, displaying the source at the top and the output at the bottom, along with the result. Note that default values will be used for the variables; use this notifier from a test to use real variable values.
Build
This button is only available when the Script type is AppleScript. It builds the script, and displays any AppleScript errors. If valid, the script is colored as conventional for AppleScripts.
Get More
Click this button to visit the Simon Extras page in your web browser. It is the repository for new and user-submitted scripts and more.
Open Script
Click to load a new script off disk, replacing any already in the window. It could be a standard .scpt, .sh, etc file, or one saved from Simon.
Save Script As
Click to save the current script, along with the instructions, custom variables, etc to a normal script file. Use this to share your scripts with other Simon users!

Copyright © Dejal Systems, LLC
Dernière mise à jour le 7 août 2015

HomeNotifier KindPort Notifier Plug-inSMS Notifier Plug-in