Scan with your iPhone to install
ajoute un prix dans le numbers
What's New
Version 1.0
First release
What it does
24 actions-
Split Text
-
Get Item from List
-
Add to Variable
-
Get Item from List
-
Add to Variable
-
Get Item from List
-
Add to Variable
-
Get File
-
Add to Variable
-
Date
-
Ask for InputDate de l’achat ?
-
Add to Variable
-
Get Contents of Folder
-
Choose from List
-
Add to Variable
-
Get File
-
Split Text
-
Choose from List
-
Add to Variable
-
Ask for InputDescription ?
-
Add to Variable
-
Ask for InputMontant ?
-
Add to Variable
-
T Ni O S Add Values To Spreadsheetcom.apple.iWork.Numbers
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'
#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
You Might Also Like
Advertisement