Forked from benwaldie/2014-04-03 Send Keynote Presenter Notes to Evernote.applescript
Last active
August 10, 2016 12:16
-
-
Save falcon8823/fb6eea2d2a48106cb1344d20f9d715f7 to your computer and use it in GitHub Desktop.
This script sends presenter notes from a Keynote 6.6 presentation to TextEdit.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--============================== | |
-- Extract Keynote Presenter Notes to TextEdit | |
-- Refered to https://gist.github.com/benwaldie/9955151 | |
--============================== | |
tell application "Keynote" | |
if (front document exists) = false then | |
display alert "Unable to proceed." message "Please open a presentation in Keynote." | |
return | |
end if | |
set theNotes to presenter notes of every slide of front document | |
end tell | |
set theFormattedNotes to "" & return | |
repeat with a from 1 to length of theNotes | |
set theFormattedNotes to theFormattedNotes & "Slide #" & a & return | |
set theFormattedNotes to theFormattedNotes & item a of theNotes & return & return | |
end repeat | |
set result to theFormattedNotes | |
tell application "TextEdit" | |
make new document | |
set text of front document to theFormattedNotes | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment