User Tools

Site Tools


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.


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

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!”
  write log “no it is not.”
end if

See Also:

dictionary/unitinformation/unitpropertynamesfrom.txt · Last modified: 2023/02/13 14:52 by