Fat Cat Software

PowerPhotos Help

AppleScript Command - duplicate

Copy albums or photos to another library.

Syntax

duplicate <photos or albums> to <library> [skip duplicates <boolean>]

Parameters

Parameter Type Required Description
direct parameter list of photo or album yes The photos or albums to copy.
to library yes The destination library.
skip duplicates boolean no Whether to skip duplicate photos.

Result

None.

Example

tell application "PowerPhotos"
	set sourceLibrary to first library whose name is "Vacation 2024"
	set destLibrary to first library whose name is "Archive"

	-- Copy all albums from the source library to the destination
	set allAlbums to every album of sourceLibrary
	duplicate allAlbums to destLibrary skip duplicates true
end tell