Script to get character outline boundaries

I’ve browsed various script repositories and haven’t found examples of script bits that:

  1. Script that gets the x/y boundaries of a specific character outline
  2. Script that takes x/y boundaries and creates a rectangular outline

Suggestions of where to look?

Use the bounds property on a layer:


How do I reference the capHeight attribute?


Other values are listed in the documentation.