Отсканируй на iPhone, чтобы установить
Real simple idea. Basically, the numbers are used to adjust the current date by days converting them into dates then formatted to yy/MM/dd. Filter files then formatted back to MM/dd/yy (for some reason I do not understand, to get this format the actual format is MM/yy/dd)
Что нового
Версия 1.1
Fixed
Что делает
Действий: 17-
Text
-
Set VariableOriginal
-
Split Text
-
Repeat with Each
-
Date
-
Adjust Date
-
Format Date
-
Add to Variable
-
Get Variable
-
Filter Files
-
Repeat with Each
-
Format Date
-
Repeat with Each
-
Get Variable
-
Get Time Between Dates
-
Add to Variable
-
Show Result
Посмотреть как код
Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.
#include 'actions/calendar'
#define color taupe
#define glyph calculator
@Original = "17\n1\n3\n100\n-1\n-50\n"
splitText(nil)
for _ in nil {
currentDate()
adjustDate("", "")
formatTimestamp("", "Custom", "None", "yy/MM/dd")
@Numbers = nil
}
// TODO: Get Variable not supported: Assign variable here to '@Numbers'.
filterFiles(nil, "Name", "Z to A")
for _ in nil {
formatDate("", "Custom", "MM/yy/dd")
}
for _ in nil {
// TODO: Get Variable not supported: Assign variable here to '@RepeatItem'.
rawAction("is.workflow.actions.gettimebetweendates", {
"WFTimeUntilCustomDate": "{CurrentDate}",
"WFTimeUntilReferenceDate": "Other",
"WFTimeUntilUnit": "Days"
})
@Sorted = nil
}
show("Original list\n{@Original}\n\nSorted\n{@Sorted}")
Открыть в Cherri Playground
Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.
Оценки и отзывы
Написать отзыв–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings
Пока нет отзывов. Поделись мнением первым!
Реклама
Ещё от chefchip1965
Вам также может понравиться
Реклама