IsScriptRunning

Purpose

This function indicates if a specified script is currently running.

Parameters

Parameter: script name
Type: string
Description: This is the name of the script to check.

Returns

Return value: status
Type: boolean
Description: This returns TRUE if the specified script is currently running and FALSE if it doesn't.

Example

' check if the script "weather.txt" is running

if hs.IsScriptRunning("weather.txt") then
  hs.writelog "info","The weather script is still running"
end if