Fat Cat Software

PowerPhotos Help

AppleScript Command - merge

Merge multiple libraries into one.

Either the into parameter or the creating library at parameter must be specified, but not both. Use into to merge into an existing library, or creating library at to create a new destination library.

Syntax

merge <libraries> [into <library>] [creating library at <file>] [skip duplicates <boolean>]

Parameters

Parameter Type Required Description
direct parameter list of library yes The source libraries to merge.
into library no An existing destination library to merge into.
creating library at file no The location for a new destination library.
skip duplicates boolean no Whether to skip duplicate photos during the merge.

Result

library – the merged destination library.

Example

tell application "PowerPhotos"
	set lib1 to first library whose name is "Travel Photos"
	set lib2 to first library whose name is "Family Photos"
	set destLib to first library whose name is "Master Library"

	merge {lib1, lib2} into destLib skip duplicates true
end tell