ShareShortcuts

Ajouter un prix

ajoute un prix dans le numbers

paulo83
Fork “Ajouter un prix”

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
40K
Saved
0
Actions
24
Category
Utilities
Version
1.0
Language
FR

ajoute un prix dans le numbers

What's New

Version 1.0

First release

Version History
1.0 Jul 14, 2022

First release

What it does

24 actions
  1. Split Text
  2. Get Item from List
  3. Add to Variable
  4. Get Item from List
  5. Add to Variable
  6. Get Item from List
  7. Add to Variable
  8. Get File
  9. Add to Variable
  10. Date
  11. Ask for Input
    Date de l’achat ?
  12. Add to Variable
  13. Get Contents of Folder
  14. Choose from List
  15. Add to Variable
  16. Get File
  17. Split Text
  18. Choose from List
  19. Add to Variable
  20. Ask for Input
    Description ?
  21. Add to Variable
  22. Ask for Input
    Montant ?
  23. Add to Variable
  24. T Ni O S Add Values To Spreadsheet
    com.apple.iWork.Numbers

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'
#include 'actions/calendar'
#define color lightblue

const ScinderLeTexte = splitText(ShortcutInput, "-")
getRandomItem(ScinderLeTexte)
@Anne
getLastItem(ScinderLeTexte)
@NomMois
getListItem(ScinderLeTexte, 2)
@NumrosMois
getFileFromFolder(, "/{@Anne}.numbers")
@FeuilleAnne
currentDate()
prompt("Date de l’achat ?", "Date")
@Date
const ContenuDuDossier = getFolderContents()
chooseFromList(ContenuDuDossier, "Quelle catégorie ?")
@Catgorie = ['Name']
const Fichier = getFile("/Template/Catégories/{@Catgorie}.txt", false)
const ScinderLeTexte1 = splitText(Fichier)
chooseFromList(ScinderLeTexte1, "Quelle sous-catégorie ?")
@Souscatgorie
prompt("Description ? ")
@Description
prompt("Montant ?", "Number")
@Montant
rawAction("com.apple.iWork.Numbers.TNiOSAddValuesToSpreadsheetIntent", {
	"Show-values": true,
	"sheetName": "{@NumrosMois} - {@NomMois}",
	"spreadsheet": "@FeuilleAnne",
	"tableName": "Transactions du mois",
	"values": [
		{
			"Value": {
				"attachmentsByRange": {
					"{0, 1}": {
						"Type": "Variable",
						"VariableName": "Date"
					}
				},
				"string": ""
			},
			"WFSerializationType": "WFTextTokenString"
		},
		{
			"Value": {
				"attachmentsByRange": {
					"{0, 1}": {
						"Type": "Variable",
						"VariableName": "Catégorie"
					}
				},
				"string": ""
			},
			"WFSerializationType": "WFTextTokenString"
		},
		{
			"Value": {
				"attachmentsByRange": {
					"{0, 1}": {
						"Type": "Variable",
						"VariableName": "Sous-catégorie"
					}
				},
				"string": ""
			},
			"WFSerializationType": "WFTextTokenString"
		},
		{
			"Value": {
				"attachmentsByRange": {
					"{0, 1}": {
						"Type": "Variable",
						"VariableName": "Description"
					}
				},
				"string": ""
			},
			"WFSerializationType": "WFTextTokenString"
		},
		{
			"Value": {
				"attachmentsByRange": {
					"{0, 1}": {
						"Type": "Variable",
						"VariableName": "Montant"
					}
				},
				"string": ""
			},
			"WFSerializationType": "WFTextTokenString"
		}
	]
})
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