Guest User

Untitled

a guest
Jun 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. set filepath to POSIX file "/Users/tjcarter/keytext.txt"
  2. set contlines to paragraphs of (read (filepath as alias))
  3. tell application "Keynote"
  4. launch
  5. -- activate
  6. set allthemes to name of appThemes
  7. -- Not sure how to select my theme directly
  8. set usetheme to choose from list allthemes
  9. if usetheme is false then return
  10. set usetheme to usetheme as Unicode text
  11. -- other slide size...
  12. -- {800, 600},{1024,768},{1280,720},{1680,1050},{1920,1080},custom...
  13. set themeprops to {theme:usetheme, slideSize:{1024, 768}}
  14. set newslideshow to make new slideshow at end of slideshows with data themeprops
  15. repeat with contline in contlines
  16. tell newslideshow
  17. set newslide to make new slide
  18. set master of current slide to master slide "Title Center"
  19. tell current slide
  20. set title to contline
  21. end tell
  22. end tell
  23. end repeat
  24. end tell
Add Comment
Please, Sign In to add comment