thgdfhfghffg

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

Close

Q: Keynote script

  • All replies
  • Helpful answers

  • by Pierre L.,Solvedanswer

    Pierre L. Pierre L. May 27, 2016 1:21 AM in response to thgdfhfghffg
    Level 5 (4,484 points)
    May 27, 2016 1:21 AM in response to thgdfhfghffg

    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.

  • by Clueless_Dave,

    Clueless_Dave Clueless_Dave Sep 2, 2016 9:16 AM in response to Pierre L.
    Level 1 (8 points)
    Sep 2, 2016 9:16 AM in response to Pierre L.

    Hi there,

     

    Would you have any idea how to make this work for Keynote 5, by any chance? I (need to) have both versions installed, and Keynote '09 is in Application/iWorks '09/ (as opposed to Keynote '14, which lives at the root of Applications)

     

    Thanks a million in advance,

    Cheers,

    D