PowerPhotos Help
AppleScript Command - make
Create a new object.
Syntax
make new <type> [at <location>] [with data <any>] [with properties <record>]
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| new | type | yes | The class of the new object. |
| at | location specifier | no | Where to insert the new object. |
| with data | any | no | The initial contents of the object. |
| with properties | record | no | The initial property values for the object. |
Result
specifier – the newly created object.
Example
tell application "PowerPhotos"
-- Create a new library
set newLibrary to make new library with properties ¬
{name:"Summer 2025", location:POSIX file "/Users/me/Pictures/Summer 2025.photoslibrary"}
-- Create a new album in that library
set newAlbum to make new album at newLibrary with properties {name:"Beach Trip"}
-- Create a new folder in that library
set newFolder to make new folder at newLibrary with properties {name:"Travel"}
end tell