Sample Header Ad - 728x90

How to send an image to the back (layer) using Applescript in Keynote?

0 votes
1 answer
275 views
I'm inserting a new image into an existing Keynote document. When the image is inserted, it is on the front layer covering some other objects. I would like to send it to the back layer. Is there a built-in Applescript command to do that?
tell application "Keynote"
	activate
	tell (open result_keynote)
		tell third slide
			tell (make new image with properties {file:screenshot_file})
				set height to screenshot_height
				set width to screenshot_width
				set position to screenshot_position
                -- set layer position here
			end tell
		end tell
	end tell
end tell
Asked by Martin Tarjányi (101 rep)
Nov 14, 2022, 01:27 PM
Last activity: Aug 1, 2025, 02:08 AM