When I run the script on 10.9, I receive the following error:
error "Can’t make «class cxrp» id 1376 of application \"Adobe InDesign CS5.5\" into the expected type." number -2700 from «script» to item
The expected output is “success”
I’ve run this script on several different Macs, some with OS X 10.8 and some with 10.9. All the ones with 10.8 work fine, and all the ones with 10.9 generate an error. I’ve also tried it with various documents and xpath expressions, to no avail.