User Tools

Site Tools


Sidebar

dictionary:unitinformation:unitpropertynamesfrom

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.txt · Last modified: 2018/01/15 15:05 by James Sentman