0 Replies Latest reply on Jun 10, 2014 3:15 PM by MasonM

    Applescripts broken after upgrade to OS X 10.9 (Mavericks)

    MasonM

      After upgrading from OS X 10.8 to 10.9, some Applescripts we use with InDesign 5.5 stopped working. I was able to isolate the affected code and create a minimal, self-contained reproduction script: https://gist.github.com/MasonM/38a8a1d9287776188bd3

       

      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.