ShareShortcuts

Mettre à jour la Matrice

Works with "Mettre à jour le document des comptes"

paulo83
Fork “Mettre à jour la Matrice”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so paulo83 gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
45K
Saved
1
Actions
19
Category
Calculations
Version
1.0
Language
FR

Works with "Mettre à jour le document des comptes"

What's New

Version 1.0

First release

Version History
1.0 Dec 11, 2021

First release

What it does

19 actions
  1. Get File
  2. Save File
  3. Get File
  4. Split Text
  5. Get File
  6. Split Text
  7. Repeat with Each
  8. Wait
  9. Get Item from List
  10. Show Notification
    …
  11. T Ni O S Add Values To Spreadsheet
    com.apple.Numbers
  12. Get File
  13. Delete Files
  14. Get File
  15. Save File
  16. Get File
  17. Delete Files
  18. Get File
  19. Rename File

View as code
Beta

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

See All

You Might Also Like

See All
Advertisement