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
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