All Of Class

Returns a list of all lists, views or groups.

Usage

all of class (text, the class: “globals”, “lists”, “views”, “groups”, “errors”, “lowbatt”)
returns AppleScript list of names.

globals returns a list of all global scripts lists returns a list of all unit lists views returns a list of all views groups returns a list of all units that are groups errors returns a list of all units for which the error level is set. For example any Vera unit that is not responding or any unit for which the last activity timeout has been reached. lowbatt returns a list of all units that currently are reporting a low battery flag.

Optional Parameters:

with extract
returns a list of unit extract records. this is only meaningful if the list you’re requesting contains units and not scripts or other items.

Examples:

set AllMyGlobalScripts to all of class "globals"
 
write log "I count " & (count of items of AllMyGlobalScripts) & " global scripts."
repeat with ThisScriptName in AllMyGlobalScripts
  write log ThisScriptName
end repeat

History:

classes “errors” and “lowbatt” were added in version 9.1

dictionary/lists/class.txt · Last modified: 2017/02/23 11:58 by James Sentman
CC Attribution-No Derivative Works 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0