Tuesday, April 25, 2017

#1 2017-03-07 06:20:30 am

brandelune
Member
Registered: 2015-04-17
Posts: 7

Powerpoint spellchecking & Applescript...

I'm using Powerpoint 2008 and I am looking for a way to change the spelling language of the text boxes in slides.

The AS dictionary does not seem to contain anything that allows for that (unlike Word, in a very convoluted way).

Any idea how I could go about doing that?

Offline

 

#2 2017-03-07 07:28:50 pm

haolesurferdude
Member
Registered: 2010-02-19
Posts: 82

Re: Powerpoint spellchecking & Applescript...

This works to check spelling in Powerpoint 2011 and should probably work in 2008.

Manually. Click in the text box you want to spell check.  Do a select all (Command-a).  Then, either press Command-Option-l (thats a lower case L) or select "Spelling..." from under the "Tools" menu.

Programatically:  The following will run the spell check on the currently open window in Powerpoint.

Applescript:


tell application "Microsoft PowerPoint"
   activate
   launch speller on active window
end tell

Hope this helps...

Offline

 

#3 2017-03-09 02:01:39 am

brandelune
Member
Registered: 2015-04-17
Posts: 7

Re: Powerpoint spellchecking & Applescript...

Thank you for the reply.

Sorry for the misunderstanding. My question was not about executing the spellchecking, but about changing the language of all the text boxes at once.

When I use Select All, I can select all the text boxes in 1 slide and then I have to manually access the "language selection" item in the Tool menu to change the language.

PPT does not seem to offer a way to do that in AS.

Also, I can't select all the text boxes for all the document, I am limited to do that on a slide per slide basis.

Offline

 

#4 2017-03-09 09:04:33 am

haolesurferdude
Member
Registered: 2010-02-19
Posts: 82

Re: Powerpoint spellchecking & Applescript...

Sorry, I finally get it.  You want to change the language say "English" to say "French".

Check out the following discussion that provides a number of ways for doing this.  Unfortunately, a straight forward AppleScript method doesn't appear to be available.  Having said that, if anyone knows how, they will now inform us.

https://superuser.com/questions/55034/c … esentation

Offline

 

#5 2017-03-12 10:07:20 pm

brandelune
Member
Registered: 2015-04-17
Posts: 7

Re: Powerpoint spellchecking & Applescript...

Yes, I saw solutions similar to this one, but for some reason, they don't work in (Mac) Powerpoint 2008. Only (Windows) Powerpoint 2003 and 2007. Hence the request for a scriptable solution.

I guess what's left is GUI scripting...

Offline

 

Board footer

Powered by FluxBB

[ Generated in 0.031 seconds, 8 queries executed ]

RSS (new topics) RSS (active topics)