PowerPhotos Help
AppleScript Command - exists
Verify that an object exists.
Syntax
exists <object>
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| direct parameter | any | yes | The object(s) to check. |
Result
boolean – true if the object exists, false otherwise.
Example
tell application "PowerPhotos"
if exists (first library whose name is "Vacation Photos") then
display dialog "The library exists."
else
display dialog "The library was not found."
end if
end tell