views:

225

answers:

1

Need some help to figure out how to access Text Boxes inside a slide in Keynote with Applescript. I tried to use ASDictionary but I couldn't find anything that would resemble a text box object. I fear that they are not scriptable in Keynote, but perhaps I can access them through Applescript Cocoa bridge? Any thoughts? Thanks!

A: 

If (and only if) Keynote doesn't provide access to objects on a slide via AppleScript, then you should do two things:

  1. File an enhancement request at https://bugreport.apple.com/ .
  2. Try examining the Keynote document directly by parsing its XML.

Keynote's XML document format is not documented, as far as I know, but at least you can access it. You just have to be careful about the format changing out from under you.

Peter Hosey
I think it is documented here: http://developer.apple.com/mac/library/documentation/AppleApplications/Conceptual/iWork2-0_XML/Chapter02/02Pages.html. XML parsing was on my mind but I decided against it.
monomyth