A Photos library. Represents a single Photos library known to PowerPhotos, providing access to its albums, photos, and metadata.
Properties
| Property |
Type |
Access |
Description |
| name |
text |
r/w |
The display name of the library. |
| id |
text |
r/o |
The unique identifier of the library. |
| location |
file |
r/o |
The file path of the library on disk. |
| library group |
library group |
r/o |
The library group this library belongs to. |
Elements
| Element |
Description |
| album |
All albums in the library. |
| photo |
All photos in the library. |
Responds To
| Command |
Description |
| open |
Opens the library in Photos or PowerPhotos. |
| merge |
Merges this library with another library. |
Example
tell application "PowerPhotos"
set allLibraries to every library
repeat with lib in allLibraries
set libName to name of lib
set libLocation to location of lib
set photoCount to count of photos of lib
log "Library: " & libName & " — Location: " & (libLocation as text) & " — Photos: " & photoCount
end repeat
end tell