This script is designed to make it easier to share a presentation that may:
be a draft version
incorporate typefaces not part of the default installation of the OS
have a large file size
may contain high-resolution images you don’t wish to make accessible to others when the presentation is distributed
This is accomplished by exporting the slides to a set of images, and then creating a new presentation incorporating the exported images. In addition, during the construction of the new presentation, slide transitions and presenter notes are transferred to the new presentation.
Note that object builds, such as bullet build-ins, are not transferred during this process.
(⬇ see below ) Exported slide images. The DRAFT watermark was created by adding a text overlay, set to a low opacity, on each of the presentation slides, using the script provided at the bottom of this page.
Duplicate Presentation as Image Presentation
01
tellapplication "Keynote"
02
activate
03
ifplayingistruethen tell the frontdocumenttostop
04
05
if not (existsdocument 1) then errornumber -128
06
07
display dialog "This script will export the front presentation as images and then create A new presentation containing the exported images." & return & return & "Slide transitions and presenter notes will be transfered from the source presentation." with icon 1
08
09
-- STORE INFORMATION ABOUT FRONT DOCUMENT
10
tell front document
11
setdocumentNameto itsname
12
setdocumentWidthto itswidth
13
setdocumentHeightto itsheight
14
set theslideCountto thecountof (everyslidewhoseskippedisfalse)
15
end tell
16
17
-- CREATE AN EXPORT DESTINATION FOLDER
18
-- IMPORTANT: IT’S ADVISED TO ALWAYS CREATE A NEW DESTINATION FOLDER, AS THE CONTENTS OF ANY TARGETED FOLDER WILL BE OVERWRITTEN
19
tellapplication "Finder"
20
set thetargetFolderto (makenewfolderatdesktop)
21
set thetargetFolderHFSPath to targetFolderasstring
startthe frontdocumentfrom the firstslideof the frontdocument
80
end tell
(⬇ see below ) • A script for adding and removing transparent text overlays on slides:
TIP: To have multiple scripts for adding text overlays to slides, that contain phrases such as “DRAFT” or “CONFIDENTIAL” or “INTERNAL USE ONLY”, create multiple versions of this example script, each with different default settings.
Mention of third-party websites and products is for informational purposes only and constitutes neither an endorsement nor a recommendation. MACOSXAUTOMATION.COM assumes no responsibility with regard to the selection, performance or use of information or products found at third-party websites. MACOSXAUTOMATION.COM provides this only as a convenience to our users. MACOSXAUTOMATION.COM has not tested the information found on these sites and makes no representations regarding its accuracy or reliability. There are risks inherent in the use of any information or products found on the Internet, and MACOSXAUTOMATION.COM assumes no responsibility in this regard. Please understand that a third-party site is independent from MACOSXAUTOMATION.COM and that MACOSXAUTOMATION.COM has no control over the content on that website. Please contact the vendor for additional information.