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!
0
votes
An application's entire AppleScript interface is in its dictionary—that's what the dictionary is for. And the Scripting Bridge is merely a different way of doing the same things.
- Peter Hosey
You may want to ask a separate question with exactly what you want to do that you'd hoped to do with AppleScript.
- Peter Hosey
It is rather simple, perhaps I should have worded it differently: How to access textboxes of a keynote document through applescript or applescript cocoa bridge :)
- monomyth
That part was clear. What isn't is what you want to do with the text boxes.
- Peter Hosey
word count, the way I have it now, word count is reliable only for slide notes.
- monomyth
1 Answers
0
votes
If (and only if) Keynote doesn't provide access to objects on a slide via AppleScript, then you should do two things:
- File an enhancement request at https://bugreport.apple.com/ .
- 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.