Getting profile name in Image Events

I have little experience with Image Events, but I was unable to figure out how to capture the name of the embedded color profile of an image. Any suggestions would be much appreciated! Thanks.

Haven’t tried it with Image Events but here’s how to do it with Colorsync…

set x to choose file with prompt "choose image..."
tell application "ColorSyncScripting"
	set openImage to open x
	set profName to name of profile 1 of openImage
	close openImage
end tell
profName

Bear in mind that colour profiles have to names - an internal one and the actual file name. These can differ.

Haven’t tried it with Image Events but here’s how to do it with Colorsync…

set x to choose file with prompt "choose image..."
tell application "ColorSyncScripting"
	set openImage to open x
	set profName to name of profile 1 of openImage
	close openImage
end tell
profName

Bear in mind that colour profiles have to names - an internal one and the actual file name. These can differ.
The script menu has colorsync scripts that are a good way to work out how to do things.

Thank you!