Scan with your iPhone to install
Works with "Mettre à jour le document des comptes"
What's New
Version 1.0
First release
What it does
19 actions-
Get File
-
Save File
-
Get File
-
Split Text
-
Get File
-
Split Text
-
Repeat with Each
-
Wait
-
Get Item from List
-
Show Notification…
-
T Ni O S Add Values To Spreadsheetcom.apple.Numbers
-
Get File
-
Delete Files
-
Get File
-
Save File
-
Get File
-
Delete Files
-
Get File
-
Rename File
View as code
Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.
#include 'actions/documents'
#define color darkgray
#define glyph gear
const Fichier = getFileFromFolder(, "/MAJ/MAJ Matrice comptes.numbers")
saveFile("/MAJ/MAJ Matrice comptes temp.numbers", Fichier)
const Fichier1 = getFile("/MAJ/Budget.txt")
const ScinderLeTexte1 = splitText(Fichier1)
const Fichier2 = getFile("/MAJ/Catégories.txt")
const ScinderLeTexte = splitText(Fichier2)
for _ in ScinderLeTexte {
wait(3)
getListItem(ScinderLeTexte1, @RepeatIndex)
showNotification(, @RepeatItem, false)
rawAction("com.apple.Numbers.TNiOSAddValuesToSpreadsheetIntent", {
"Show-values": true,
"position": "top",
"sheetName": "Budget",
"spreadsheet": "Fichier",
"tableName": "Résumé par catégorie",
"values": [
{
"Value": {
"attachmentsByRange": {
"{0, 1}": {
"Type": "Variable",
"VariableName": "Repeat Item"
}
},
"string": ""
},
"WFSerializationType": "WFTextTokenString"
},
{
"Value": {
"attachmentsByRange": {
"{0, 1}": {
"OutputName": "Élément de la liste",
"OutputUUID": "8F0DC790-B5A9-499F-846E-7C9E0F849698",
"Type": "ActionOutput"
}
},
"string": ""
},
"WFSerializationType": "WFTextTokenString"
},
"= SOMME.SI(Transactions::Catégorie;A2;$Montant)",
"=B2+C2"
]
})
}
const Fichier3 = getFile("/MAJ/Matrice comptes.numbers")
deleteFiles(Fichier3, true)
const Fichier4 = getFile("/MAJ/MAJ Matrice comptes.numbers")
saveFile("/MAJ/Matrice comptes", Fichier4, true)
const Fichier5 = getFile("/MAJ/MAJ Matrice comptes.numbers")
deleteFiles(Fichier5, true)
const Fichier6 = getFile("/MAJ/MAJ Matrice comptes temp.numbers")
rename(Fichier6, "MAJ Matrice comptes")
Open in Cherri Playground
Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.
Ratings & Reviews
Write a Review–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings
No reviews yet. Be the first to share what you think!
Advertisement
More by paulo83
You Might Also Like
Advertisement