Grumpy4u wrote:
Where can I see the allowed/defined properties of an image?
In the Applescript dictionary for Photos. You can access that through Script Editor (in your Utilities folder). Open Script Editor & from the File menu, choose "Open Dictionary..." then navigate to Photos in your Applications folder & choose it.
Look for the entry in the dictionary for media item (the object type for photos & videos) -- it is part of the Photos Suite. It will look like this, but with better formatting:
media item n : A media item, such as a photo or video.
elements
contained by application, albums, moments.
properties
keywords (list of text) : A list of keywords to associate with a media item
name (text) : The name (title) of the media item.
description (text) : A description of the media item.
favorite (boolean) : Whether the media item has been favorited.
date (date) : The date of the media item
id (text, r/o) : The unique ID of the media item
height (integer, r/o) : The height of the media item in pixels.
width (integer, r/o) : The width of the media item in pixels.
filename (text, r/o) : The name of the file on disk.
altitude (real, r/o) : The GPS altitude in meters.
location (list of real, r/o) : The GPS latitude and longitude, in an ordered list of 2 numbers. Latitude in range -90.0 to 90.0, longitude in range -180.0 to 180.0.
responds to
duplicate.