dictionary:unitinformation:unitpropertynamesfrom
This is an old revision of the document!
Table of Contents
Unit Property Names From
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.
Usage:
Unit Property Names From (text, the name of the unit. Defaults to thisunit)
Returns an applescript list.
Examples:
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
See Also:
dictionary/unitinformation/unitpropertynamesfrom.1676299926.txt.gz · Last modified: 2023/02/13 14:52 by 127.0.0.1