Applescript将音频文件添加到基调中并将文件上传到youtube [英] Applescript to add an audio file to keynote and upload the file to youtube

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

问题描述

我正在尝试使用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做到这一点的方法.通常,您可以在检查器"->文档"->音频"部分中手动执行此操作.我也没有看到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.

似乎通过applenoteing主题演讲无法完成任何您想做的事情. 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.

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

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