ShareShortcuts

Humin User ID Generator

\not supported anymore\

humin
Fork “Humin User ID Generator”

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 humin 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
37K
Saved
1
Actions
49
Category
Utilities
Version
1.1
Language
EN

[not supported anymore]

What's New

Version 1.1

Integrated Humin Updater for automatic updates

Version History
1.1 Oct 31, 2022

Integrated Humin Updater for automatic updates

1.0 Oct 29, 2022

First release

What it does

49 actions
  1. Dictionary
  2. Dictionary
  3. Set Variable
    IntToHex
  4. List
  5. Set Variable
    Output
  6. List
  7. Set Variable
    N
  8. Repeat
  9. Random Number
  10. Add to Variable
  11. Number
  12. Set Variable
    Last
  13. Repeat with Each
  14. Calculate
  15. Calculate
  16. Set Variable
    Last
  17. Get Dictionary Value
  18. Set Variable
    N
  19. Repeat
  20. Random Number
  21. Get Dictionary Value
  22. Set Variable
    Random
  23. Get Item from List
  24. Combine Text
  25. Add to Variable
  26. Get Item from List
  27. Combine Text
  28. Add to Variable
  29. Get Item from List
  30. Combine Text
  31. Text
  32. Add to Variable
  33. Get Item from List
  34. Combine Text
  35. Text
  36. Add to Variable
  37. Get Item from List
  38. Combine Text
  39. Add to Variable
  40. Combine Text
  41. Dictionary
  42. Text
  43. Set Variable
    Filename
  44. Get File
  45. If
  46. Show Alert
    Warning!
  47. Save File
  48. Text
  49. Show Result

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 lightblue
#define glyph person

@IntToHex = {
	"1": "1",
	"10": "a",
	"11": "b",
	"12": "c",
	"13": "d",
	"14": "e",
	"15": "f",
	"2": "2",
	"3": "3",
	"4": "4",
	"5": "5",
	"6": "6",
	"7": "7",
	"8": "8",
	"9": "9"
}
list()
@Output = nil
list("1", "0")
@N

repeat _ for 2 {
	randomNumber(0, 1)
	@N
}
@Last = 0

for _ in @N {
	const CalculationResult = @Last * 2
	@Last = CalculationResult + @RepeatItem
}
@N = @IntToHex[@Last]

repeat _ for 30 {
	randomNumber(1, 15)
}
@Random = @IntToHex[]
const ItemFromList = getListItems(@Random, 0, 8)
joinText(ItemFromList, "Custom")
@Output
const ItemFromList1 = getListItems(@Random, 9, 12)
joinText(ItemFromList1, "Custom")
@Output
const ItemFromList2 = getListItems(@Random, 13, 15)
joinText(ItemFromList2, "Custom")
@Output += "4{}"
const ItemFromList2 = getListItems(@Random, 16, 18)
joinText(ItemFromList2, "Custom")
@Output += "{@N}{}"
const ItemFromList2 = getListItems(@Random, 19, 30)
joinText(ItemFromList2, "Custom")
@Output
joinText(@Output, "-")
const Dictionary = {
	"userID": "{}"
}
@Filename = "Humin/user_id.json"
const File = getFileFromFolder(, @Filename, false)

if File {
	alert("You already have a user ID created. Do you want to continue? Note that if you proceed, we won't be able to trace your data back to you.", "Warning!")
}
saveFile(@Filename, Dictionary, true)
show()
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 humin

See All

You Might Also Like

See All
Advertisement