ListScripts: List Available Scripts

Description Usage Arguments Value Examples

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

1
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

 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.

MobileTrigger documentation built on May 16, 2019, 5:08 p.m.