I have a very simple script that is behaving weirdly.
tell application "Microsoft Word"
set props to properties of formatted text of text object of form field "Check1" of active document
If I run this I get an error dialog:
Can’t make «class 1653» of «class 1653» of «class wTxR» of «class w177» "Check1" of «class 1003» of application "Microsoft Word" into the expected type.
But if I just comment out the call to my handler, the log statement in the main body works with no error. The log window shows the output of the log call.
A test word doc is attached.
My intermediate goal is to modify my handler to detect any properties that have "color" in them, and print out where they occur, and then call itself recursively to dive down to dig out color-related properties of subobjects.
My ultimate goal is to solve another question I've posed here about trying to alter the color of a checkbox: http://www.experts-exchange.com/Apple/Operating_Systems/Q_26399551.html