ShareShortcuts
Создать форк «Albumate 📷»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы te55eract получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
9K
Сохранено
1
Действия
17
Категория
Photos and videos
Версия
1.0
Язык
EN

A photo management utility that lets you batch add photos to multiple specific albums at once.

It also features a "Dealbumate" toggle, allowing you to batch remove selected photos from albums just as easily.

Works via the Share Sheet or as a standalone app.

Что нового

Версия 1.0

First release

История версий
1.0 16 дек 2025 г.

First release

Что делает

Действий: 17
  1. Comment
    Batch add or remove photos from predetermined albums. Enter the names of the albums you want to be able to choose from to the ↓dictionary↓. The Dealbumate option at the bottom toggles the remove function. the rest of the entries are up for grabs. Ma…
  2. Set Variable
    Photos
  3. Dictionary
  4. If
  5. Select Photos
  6. Set Variable
    Photos
  7. Choose from List
  8. Get Text from Input
  9. If
  10. Repeat with Each
  11. Remove Photo from Album
  12. Save to Photo Album
  13. If
  14. Repeat with Each
  15. Get Text from Input
  16. If
  17. Remove Photo from Album

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#include 'actions/text'
#include 'actions/photos'
#define color red
#define glyph photoStack

/*
Batch add or remove photos from predetermined albums. 
Enter the names of the albums you want to be able to choose from to the ↓dictionary↓. The Dealbumate  option at the bottom toggles the remove function. the rest of the entries  are up for grabs.
Make sure the key matches the exact album's name. 

Features:  
⁃ Add to multiple albums at once  
⁃ remove from multiple albums at once  
⁃ Select Dealbumate at the same time as the albums to remove the selected photos from the selected albums.
*/
@Photos = ShortcutInput
const Dictionary = {
	"Album name 1": "album name 1",
	"Album name 2": "Album name 2",
	"Album name 3": "Album name 3",
	"Dealbumate": "Dealbumate"
}

if !@Photos {
	selectPhotos(true)
	@Photos
}
const SelectedAlbums = chooseFromList(Dictionary, "Save Album", true)
const Text = getText(SelectedAlbums)

if Text !contains "Dealbumate" {
	for _ in SelectedAlbums {
		removeFromAlbum(@Photos, @RepeatItem)
		savePhoto(@Photos, @RepeatItem)
	}
} else {
	for _ in SelectedAlbums {
		const Text1 = getText(@RepeatItem)
		if Text1 !contains "Dealbumate" {
			removeFromAlbum(@Photos, @RepeatItem)
		}
	}
}
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от te55eract

См. все

Вам также может понравиться

См. все
Реклама