用于散装转换PowerPoint演示文稿的AppleScript或Automator工作流程
-
22-10-2019 - |
题
我有大量的PowerPoint演示文稿,我想将其转换为主题演讲。我可以通过遵循以下步骤手动转换每个人:
- 在Finder中,右键单击PowerPoint文档,然后选择 打开... - >主题演讲
- 在主题演讲中,选择 另存为..., , 检查 将副本保存为 复选框,选择 iWork '08 作为格式,然后单击 好的.
但是,为每个文档这样做是乏味的。我想一种一次转换它们的方法。
我一直在尝试为此创建一个自动工作流程,但完全没有成功。 (我认为作为程序员实际上使无法理解诸如Automator和AppleScript之类的原始工具。)任何人都可以帮助我吗?
解决方案
我不知道如何让Automator做到这一点,但是我能够将AppleScript击中为提交。只需在AppleScript编辑器中保存以下作为应用程序,然后将要转换为图标的文件拖动即可。它将提示您选择将放置转换文件的文件夹。
on open droppedFiles
set theDestinationFolder to (choose folder with prompt "Choose destination folder") as Unicode text
repeat with theFile in droppedFiles
tell application "Keynote"
open theFile
set theSlideshow to slideshow 1
set theDestinationPath to theDestinationFolder & (name of theSlideshow)
save theSlideshow in theDestinationPath
close theSlideshow
end tell
end repeat
end open
(我真的不知道我正在用AppleScript做什么。如果可以在这里进行改进,我想知道它们。)
其他提示
您是否尝试使用该功能创建Automator工作流程 看着我做 (这里似乎合适)?您遇到了什么问题?
不隶属于 apple.stackexchange