Description Usage Arguments Value Examples
Creates an HTML table for all or selected scripts in the [TRIGGER_PATH]/Scripts/ folder. This table is used as part of a message being sent out to a receiving e-mail client.
1 | ListScripts(path = NULL, SelectSCRIPT = NULL)
|
path |
string, path to the /Scripts/ folder. |
SelectSCRIPT |
integer, Script ID value determined from MobileTrigger::ListScripts() output when SelectSCRIPT = NULL |
If SelectSCRIPT = NULL: An HTML table of all scripts in the /Scripts/ folder. If SelectSCRIPT is a Script ID number from the complete script list it only returns and HTML table with the selected script
1 2 3 4 5 6 7 8 9 10 11 12 | #################################
# Get all the Available Scripts #
#################################
SCRIPTPATH <- "C:/Triggers/Scripts/"
HTML.Message <- ListScripts(path = SCRIPTPATH)
## Use the HTML.Message to send table of Scripts with MailR package.
#############################
# Get Selected Script #
#############################
HTML.Message <- ListScripts(path = SCRIPTPATH, SelectSCRIPT = 1)
## Use the HTML.Message to send table of Selected Script with MailR package.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.