Smart Albums in Photos to iCloud

I just updated my iCloud account so I could sync my Mac Photos library to iCloud so I could use iCloud.com to view my photos. I didn't realize that the Smart Albums will not show up in iCloud web interface.


The only solution I can seem to come up with is to create duplicate "Normal" albums so they show up. It's not to bad to select the photos in a smart album, Command N to create a new album and name it the same as the smart album. But, I have a lot of smart albums. Does anyone know of a script or automated means to do this?

Posted on Jan 9, 2019 5:02 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 22, 2019 8:28 AM

Hello,


I find this : https://discussions.apple.com/thread/7560340?answerId=30200008022#30200008022

A script to copy a smart album to a normal one. Perhaps this script can be adapted to browse all library searching smart album (I don't know if the album has a type accessible through the applescript) ?

9 replies

Jan 10, 2019 12:12 PM in response to credog1

Smart albums do not sync with iCloud to iOS devices (iPhone, iPad, iPod), probably because the iOD devices cannot display smart albums, the cannot even show the titles, description, keywords. And www.icloud.com is equally limited. But iCloud is storing the smart albums. When you sync two Macs with iCloud the smart albums will sync between the Macs.


I do not duplicate all smart albums as standard albums to sync to iCloud, only the new that are most important to see. It is just too much bother to keep updating the standard albums.

I see no way to use an AppleScript to create automatically an album from a smart album. The Apple Script dictionary for Photos does not show any commands for smart albums, only standard albums.

Feb 15, 2019 1:42 AM in response to GregBZH35

When I tested the script, it working well, as long as the smart album does not have too many items. I have a few very large smart albums (10000 items or more), that are causing Photos to hang and the script will quit with a timeout error.

You may want to include a test for the size of the album before trying to copy it.


A question for you : is it possible to test if an album is a smart album ?


I found no way to test if an album is a smart album or a standard album. The Photos Scripting dictionary has only one class for albums, and it includes smart albums and standard albums. The class "album" inherits only the properties of "container": id, name, and parent., and these do not tell us, if an album is a smart album or a standard album. You could append a suffix "_Smart" to all smart albums, so you can test for the name.



Feb 14, 2019 11:40 PM in response to GregBZH35

Hello,


below a proposal, this is creating a folder named "SmartFolder" & doing a copy-paste of all abums in folder with "<!> in it (changing smart album to regular one). You can create this script as a schedule one after that.

Hope it help a little.


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

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Smart Albums in Photos to iCloud

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.