Get font name of 1st paragraph

Hello,

With AppleScript and Word, is it possible to get the font name of the first paragraph?
I don’t see how to do it…

Thanks for your reply.

Andrew

Hello.

I think a little bit of search here would give you an instantaneous answer for your problem.

I found this post.

-Actually then I had too look up in the eminent Word2004AppleScriptRef which I think I downloaded from mactopia. It is really useful as it shows the intended usage of the dictionary. :slight_smile:

This was my first one in word:


tell application "Microsoft Word"
	set documentTextRange to text object of paragraph 1 of active document
	set tf to font object of documentTextRange
	display dialog (name of tf) as text
end tell

Best Regards

McUsr