Image Events > Clipboard

Many thanks in advance for your help with this issue:

I am manipulating images in Image Events but would like to copy the resulting image to the clipboard.

Is this possible and if so how?

Currently running MacOS Sonoma v14.3.1

FWIW, the simplest way to do this is outside of Image Events:

set theFile to (choose file) as text -- just for testing
set the clipboard to (read file theFile as TIFF picture)

I didn’t see anything in the Image Events dictionary that would allow this to be done directly, so my suggestion is as follows:

set theFile to (choose file) as text -- just for testing

tell application "Image Events"
	launch -- just for testing
	set theImage to open file theFile -- just for testing
	set thePath to image file of theImage
	copyToClipboard(thePath) of me
end tell

on copyToClipboard(thePath)
	set the clipboard to (read thePath as TIFF picture)
end copyToClipboard

BTW, this copies the saved image file to the clipboard. It may not reflect changes you have made to the image in Image Events.