Powerpoint 255 character limit
Powerpoint 255 character limit
- Subject: Powerpoint 255 character limit
- From: Brad Anderson <email@hidden>
- Date: Fri, 5 May 2006 08:56:53 -0700 (PDT)
I have a handler script that collects the text content
from each powerpoint slide and assembles it into a
list. The problem is that that if any text frame of
any slide in power point has more than 256 characters,
Powerpoint crashes and applescript displays an error
"Microsoft PowerPoint got an error: Connection is
invalid." Any ideas or does anyone know of a good
applescript resource for powerpoint other than the
PowerPoint 2004 AppleScript Reference?
Thanks for any help
Brad Anderson
Here is my script thus far:
----
getPresentationText()
--subroutine start
on getPresentationText()
tell application "Microsoft PowerPoint"
set all_slides_text to {}
set this_presentation to active presentation
set total_slides to count of slides of
this_presentation
--start repeating routine
repeat with i from 1 to total_slides
set this_slide to slide (i) of this_presentation
set this_slide_text to ""
repeat with the_shape in (get shapes of this_slide)
if has text frame of the_shape is true then
if has text of text frame of the_shape is true
then
set the_text_count to text range of text frame
of the_shape
set this_shape_content to (get content of text
range of text frame of the_shape)
set this_slide_text to this_slide_text &
this_shape_content & return & return
else
set this_slide_text to "Slide has no text" &
return & return
end if
end if
end repeat
set end of all_slides_text to this_slide_text
end repeat
return all_slides_text
end tell
end getPresentationText
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden