getProperty("name") for a component

You can, its called getPropertyValue(propName)

This is documented in the user manual - scroll down to the bottom of most components that support dynamic properties to find the scripting functions (for example, the Text Field)