Notifier Info > Notifier Kind > Script 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 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 + button to add a line to the table, or the - 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 the notifier 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 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 Preview pane, displaying the output of the script. 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 [web link] 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 [web link] with other Simon users!