GregBZH35's Script: Create Standard Albums from Smart Albums to Sync with iCloud to iOS Devices
iCloud Photos will sync the standard albums to the iPhone or iPad, but not the smart albums, because smart albums are not supported by Photos iOS: The user GregBZH35 posted a script that will create new standard albums from the smart albums in selected folders.
See this discussion: Smart Albums in Photos to iCloud - Apple Community
This is work in progress - you may want to look for updates here.
The script is creating a new folder named "SmartFolder" and creating a new standard album for each smart album that is enclosed in a folder with a name containing the substring "<!>". Copy the code block below into a Script Editor window and click "Run". As always, try it first on a small test library, and before trying a script on your main library, make a current backup.
---- snip copy from here
tell application "Photos"
set allFolderNames to name of folders
tell folder "SmartAlbums" to if not (exists) then make new folder named "SmartAlbums"
set targetFolder to (get folder "SmartAlbums")
repeat with FolderName in allFolderNames
if FolderName contains "<!>" then
set allAlbumFromFolder to (get albums of folder FolderName)
repeat with albumToSync in allAlbumFromFolder
set srcAlbumName to name of albumToSync
log "Album : " & srcAlbumName
tell album srcAlbumName in targetFolder to if exists then delete
set targetAlbum to make new album named srcAlbumName at targetFolder
add (get media items of albumToSync) to targetAlbum
end repeat
end if
end repeat
end tell
--- snip - copy to here
When I tested it, it worked well in Photos 4.0 on macOS 10.13.3. Only very large smart albums with 10000 items or more have been causing timeout errors.
The script, compiled, as an application, has been added to Old Toad's Tutorials: www.oldtoad.net/TT/No.P01.html, for downloading as an application.