Merge Multiple Powerpoint Files into One File

M

mac4417

I have a situation where I have several Powerpoint files (each
containing multiple slides) and I'd like to develop an Applescript
that will take all the slides from specific files and merge them into
one master file. I will need to keep the formatting intact (perhaps
with a page break).

This is what I have so far (commented area shows where I am missing
proper code):

set theItems to {}
set x to 0

repeat until (count of theItems) > 1
set theItems to choose file with prompt "Select two or more
Powerpoint Files." with multiple selections allowed without invisibles
end repeat

tell application "Microsoft PowerPoint"
activate
make new presentation
repeat with aFile in theItems
tell application "Finder"
set fileRef to ((a reference to file aFile) as string) --unsure
about this line
end tell
insert file at text object of selection file name fileRef --
getting error on this line - improper syntax
if x < ((count of theItems) - 1) then
insert break at text object of selection
end if
set x to x + 1
end repeat
end tell
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top