将音频文件添加到主题演讲并将文件上传到 youtube 的 Applescript [英] Applescript to add an audio file to keynote and upload the file to youtube

查看:27
本文介绍了将音频文件添加到主题演讲并将文件上传到 youtube 的 Applescript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 automator 或 applescript 来做两件事.

I am trying to use either automator or applescript to do two things.

  1. 将 mp3 添加到打开的主题演讲中(添加到整个演示文稿而不是单个幻灯片)
  2. 将生成的主题演讲上传到 youtube.

如果我使用添加文件命令,如下所示,它似乎不起作用,尽管如果我用幻灯片 1 替换幻灯片,它只会将其添加到幻灯片 1.

If I use the add file command, as below it doesn't seem to work, although if i replace slideshow with slide 1, then it adds it to slide 1 only.

非常感谢.

tell application "Keynote"
    tell slideshow 1
        add file slideshow 1 path theFile
    end tell
end tell

推荐答案

您基本上想向幻灯片添加配乐,而不是添加文件.不幸的是,我没有看到用 applescript 做到这一点的方法.通常,您可以在 Inspector->Documents->Audio 部分手动执行此操作.我也没有看到 Share->Send To->YouTube 命令的 applescript 命令.

You basically want to add a soundtrack to the slideshow, not add a file. Unfortunately I do not see a way to do this with applescript. Normally you do this by hand in the Inspector->Documents->Audio section. I also do not see an applescript command for the Share->Send To->YouTube command either.

似乎您无法通过编写主题演讲来做您想做的任何事情.Keynote 没有那些 applescript 命令.它也没有这些东西的任何键盘快捷键,所以它不能用 GUI 脚本来完成.对不起.

It seems you can't do either of the things you want by applescripting keynote. Keynote doesn't have those applescript commands. It doesn't have any keyboard shortcuts for those things either, so it can't be accomplished with GUI scripting. Sorry.

这篇关于将音频文件添加到主题演讲并将文件上传到 youtube 的 Applescript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆