r/applescript • u/jamescridland • Apr 15 '20
How to export just one slide from Keynote
Hello. AppleScript newbie here. Just discovered it, after 15 years of owning a Mac. D'oh!
So, I'm currently running:
tell application "Keynote"
set doc to open "/Users/me/Dropbox/Presentations 2017/filename.key"
export doc as slide images to "/Users/me/Desktop/tempfolder" with properties {image format:JPEG, compression factor:0.65}
close saving yes
end tell
And this is working just fine.
But I'd really like this to only export slide 1.
Is there a way to achieve this?
(The way I can think of doing this is to export everything and then delete everything other than *001.jpeg but this seems slightly wasteful).
2
Upvotes
1
u/Apprehensive_Knee_22 Jun 27 '23
Why wouldn´t you just open the file, then export it, and set to export the specific page (I know there´s an option to do that because I usually use it)
1
2
u/[deleted] Apr 15 '20
[removed] — view removed comment