Fat Cat Software

PowerPhotos Help

AppleScript Command - add

Add photos to an album.

Syntax

add <photos> to <album>

Parameters

Parameter Type Required Description
direct parameter list of photo yes The photos to add.
to album yes The album to add photos to.

Result

None.

Example

tell application "PowerPhotos"
	set theLibrary to first library whose name is "Main Library"
	set favAlbum to first album of theLibrary whose name is "Favorites Collection"

	-- Add all favorited photos to the album
	set favPhotos to (every photo of theLibrary whose favorite is true)
	add favPhotos to favAlbum
end tell