A family of Microsoft presentation graphics products that offer tools for creating presentations and adding graphic effects like multimedia objects and special effects with text.
Here's the best I could come up with. Unfortunately, Apple's sandboxing requirements make this a pain. Here's a macro-enabled presentation with the macro and action button already set up: InsertRandomImage.pptm
All the photos are in the same folder as the presentation and are number 1.jpg, 2.jpg, etc. I use 12 images for testing, so the macro uses the number 12.
Sub InsertRandomImage()
Randomize
RanNum% = Int(12 * Rnd) + 1
Path$ = ActivePresentation.Path
FullFileName$ = Path$ + "/" + CStr(RanNum%) + ".jpg"
ActivePresentation.Slides(1).Shapes.AddPicture(FileName:=FullFileName$, LinkToFile:=msoTrue, SaveWithDocument:=msoTrue, Left:=300, Top:=150, Width:=200).Select
End Sub
Change the 12 in Int(12* Rnd) to the actual number of photos.
Here's the macOS pain in the butt part:
- When you open the presentation, PowerPoint asks if you want to Enable Macros (You do).
- Then when you click on the macro button, PowerPoint asks Do you want to run the macro InsertRandomImage. Click on Run Macro.
- Then PowerPoint displays a Grant File Access box with the file name. You have to click Select...
- Then yet another dialog opens showing the list of files with the selected file highlighted. You have to click on Grant Access.
- Finally the photo appears on the slide.
Sadly, there is no way around these dialogs.