apple-mac-os:macos-monterey:automatic-deletion-of-old-files-daemon-as-task-scheduler-in-macos
Различия
Показаны различия между двумя версиями страницы.
Следующая версия | Предыдущая версия | ||
apple-mac-os:macos-monterey:automatic-deletion-of-old-files-daemon-as-task-scheduler-in-macos [23.03.2022 15:46] – создано Алексей Максимов | apple-mac-os:macos-monterey:automatic-deletion-of-old-files-daemon-as-task-scheduler-in-macos [08.11.2023 20:38] (текущий) – Виталий Якоб | ||
---|---|---|---|
Строка 1: | Строка 1: | ||
===== Автоматическое удаление старых файлов (" | ===== Автоматическое удаление старых файлов (" | ||
- | {{: | + | {{: |
Создадим скрипт **AppleScript** с именем '' | Создадим скрипт **AppleScript** с именем '' | ||
<file applescript Delete-files-from-downloads.scpt> | <file applescript Delete-files-from-downloads.scpt> | ||
+ | Original | ||
https:// | https:// | ||
*) | *) | ||
Строка 24: | Строка 25: | ||
set {theResult, theValue, theError} to (theUrl' | set {theResult, theValue, theError} to (theUrl' | ||
-- compare the date | -- compare the date | ||
- | if theResult and (theValue' | + | if theResult and (theValue' |
end repeat | end repeat | ||
- | if mylist is not {} then tell application " | + | if mylist is not {} then |
- | if mylist is not {} then display notification " | + | tell application " |
- | Удалено объектов:" | + | display notification " |
+ | end if | ||
end deleteOlderItems</ | end deleteOlderItems</ | ||
Строка 94: | Строка 96: | ||
---- | ---- | ||
Проверено на следующих конфигурациях: | Проверено на следующих конфигурациях: | ||
- | ^ Версия ОС | + | ^ Версия ОС ^ |
| Apple macOS Monterey (12.0) | | Apple macOS Monterey (12.0) | ||
+ | | Apple macOS Ventura (13.0) | ||
+ | | Apple macOS Sonoma (14.0) | ||
---- | ---- |
apple-mac-os/macos-monterey/automatic-deletion-of-old-files-daemon-as-task-scheduler-in-macos.1648039568.txt.gz · Последнее изменение: 23.03.2022 15:46 — Алексей Максимов