Unit Properties can store any applescript object by names. This verb returns an AppleScript list of the names of any unit properties stored for the named unit.
Unit Property Names From (text, the name of the unit. Defaults to thisunit)
Returns an applescript list.
To log the names of any properties stored for the unit:
set myPropertyNames to Unit Property Names From “my unit” write log “unit property names are:” for each thisName in myPropertyNames write log thisName next
To see if a unit property name exists for a specific unit use the “is in” applescript check like this:
if “name I want to check for” is in (unit property names from “the unit name”) then write log “yes it is!” else write log “no it is not.” end if