Q: Keynote script
Hi all,
Wondering if somebody could help me.
I am looking for a script, to be run either as a service or from inside Keynote, that does the following:
for each text box in the Keynote file,
- selects all the text in the text box
- sets the ligature option to Use None
Thanks a million in advance,
Cheers,
D
OS X Yosemite (10.10.3)
Posted on May 26, 2016 8:18 AM
The following GUI script seems to do what you are asking for, at least with Keynote 6.6.2 under OS X 10.11.3:
tell application "Keynote"
activate
set N1 to count the slides of document 1
end tell
tell application "System Events" to click menu item "First Slide" of menu 1 of menu item "Go To" of menu 1 of menu bar item "Slide" of menu bar 1 of process "Keynote"
repeat N1 times
tell application "Keynote" to set N2 to count iWork items of current slide of document 1
tell application "System Events"
repeat N2 times
keystroke tab
click menu item "Use None" of menu 1 of menu item "Ligature" of menu 1 of menu item "Font" of menu 1 of menu bar item "Format" of menu bar 1 of process "Keynote"
end repeat
click menu item "Next Slide" of menu 1 of menu item "Go To" of menu 1 of menu bar item "Slide" of menu bar 1 of process "Keynote"
end tell
end repeat
tell application "System Events" to click menu item "First Slide" of menu 1 of menu item "Go To" of menu 1 of menu bar item "Slide" of menu bar 1 of process "Keynote"
Also have a look at this article.
Posted on May 27, 2016 1:21 AM