I am saving currentLayer.textItem.contents to a text file. That part is working. But I would also like to save attributes about the textItem, specifically the fonts being used and style attributes in the textItem.

However, I am only able to find the first font using currentLayer.textItem.font . Can I somehow find a list of all fonts and attributes used in a specific textItem?

Using the standard DOM you can only access the attributes of first character of a text layer… or thats what I recall… It may be possible with action manager to dig deeper into this but I've never tried… More than likely too complex for me… I think pixxxel means for you to look in the Object Model Viewer ( omv ) of the ExtendScript Toolkit ( estk ) just key comm+/ on the mac