PowerPhotos Help
AppleScript Object - application
The application’s top-level scripting object. This is the root object you interact with when scripting PowerPhotos via AppleScript. It provides access to libraries, library groups, export presets, and windows, as well as information about the application itself.
Properties
| Property | Type | Access | Description |
|---|---|---|---|
| name | text | r/o | The name of the application. |
| frontmost | boolean | r/o | Whether PowerPhotos is the active (frontmost) application. |
| version | text | r/o | The version number of the application. |
| selection | library / album / photo (or list) | r/w | The current selection in PowerPhotos. Can be set to select items in the UI. |
Elements
| Element | Access | Description |
|---|---|---|
| library | r/o | All libraries known to PowerPhotos. |
| library group | r/o | All library groups in the library list. |
| export preset | r/o | All saved export presets. |
| window | r/o | All open windows. |
Example
tell application "PowerPhotos"
set appVersion to version
set libraryNames to name of every library
log "PowerPhotos version: " & appVersion
repeat with libName in libraryNames
log "Library: " & libName
end repeat
end tell