ListScripts {MobileTrigger} | R Documentation |
List Available Scripts
Description
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.
Usage
ListScripts(path = NULL, SelectSCRIPT = NULL)
Arguments
path |
string, path to the /Scripts/ folder. |
SelectSCRIPT |
integer, Script ID value determined from MobileTrigger::ListScripts() output when SelectSCRIPT = NULL |
Value
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
Examples
#################################
# 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.
[Package MobileTrigger version 0.0.31 Index]