Applescript to add an audio file to a keynote and upload a file to YouTube

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

  • add mp3 to the presentation of an open presentation (for the entire presentation, not for a single slide).
  • Download the resulting presentation presentation on youtube.

If I use the add file command as shown below, it does not work, although if I replaced the slide show with slide 1, it will add it only for the slide.

Thank you very much.

tell application "Keynote" tell slideshow 1 add file slideshow 1 path theFile end tell end tell 
+4
source share
1 answer

Basically you want to add a soundtrack to a slide show, rather than adding a file. Unfortunately, I see no way to do this with applescript. Usually you do this manually in the Inspector-> Documents-> Audio section. I also do not see the applescript command for the Share-> Send To-> YouTube command.

It seems you cannot do what you want with the keynote. Keynote does not have these applescript commands. It does not have any keyboard shortcuts for these things, so this cannot be achieved with GUI scripts. Unfortunately.

0
source

Source: https://habr.com/ru/post/1445296/


All Articles