This simple script works for some image files and not for others and I can’t figure out why:
tell application "Keynote"
tell document 1
tell current slide
make new image with properties {file:"Macintosh HD:Users:karstenkamps:GESCHÄFT:IT:Automatisierung:Bilder:Google Slides:2 Makrolage.png"}
end tell
end tell
end tell
I’ve tried .jpg files, other .png files. I have one png file that works. The error message I get is (translated from German):
“not supported object/file” in English I suppose.
The files are simple screenshots or sometimes larger image files. They all work manually with cut and paste. If an image is larger than the size of the slide, it works manually. If the image is smaller than the siez of the slide, it works with that one file but not with the others.
My keynote version is the newest, 9.2.
Anyone any idea?