ShareShortcuts
Fork “Lock Your App”

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 sameerhereiki 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
52K
Saved
2
Actions
22
Category
Utilities
Version
1.3
Language
EN

You can lock your apps

How To Use:

Replace 1111 with desired code and then scroll down to open and choose an app

What's New

Version 1.3

Adden more explanations

Version History
1.3 Apr 15, 2021

Adden more explanations

1.2 Apr 15, 2021

Bug fixes

1.1 Apr 15, 2021

Fixed a bug

1.0 Apr 15, 2021

First release

What it does

22 actions
  1. Comment
    It only works for one app at a time currently.
  2. Comment
    Hi thanks for downloading this shortcut. Any questions on the comments or on my discord demonslayer64#9649
  3. Comment
    Replace 1111 in the text below with your code. (It can also be text)
  4. Text
  5. Set Variable
    Code
  6. Text
  7. Set Variable
    Localver
  8. URL
    https://shareshortcuts.com/jsonstore/1292/for-lock-apps-6077dbdd45712.json
  9. Get Contents of URL
    …
  10. Set Variable
    Onlinever
  11. If
  12. Choose from Menu
    There is a new update available do you wanna update
  13. Choose from Menu
    Yes
  14. Open URLs
  15. Choose from Menu
    No
  16. Ask for Input
    PassCode
  17. Set Variable
    Givencode
  18. If
  19. Comment
    Replace settings with desired app
  20. Open App
  21. If
  22. Show Alert

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/web'
#define color red
#define glyph lock

// It only works for one app at a time currently.

/*
Hi thanks for downloading this shortcut.
Any questions on the comments or on my discord demonslayer64#9649
*/
// Replace 1111 in the text below with your code. (It can also be text)

@Code = "1111"
@Localver = "{\\"version\\":\\"1.0\\"}"
url("https://shareshortcuts.com/jsonstore/1292/for-lock-apps-6077dbdd45712.json")
downloadURL()
@Onlinever

if @Localver != @Onlinever {
	menu "There is a new update available do you wanna update" {
	item "Yes ":
		openURL("https://shareshortcuts.com/shortcuts/1294-lock-your-apps.html")
	item "No":
	}
}
prompt("PassCode")
@Givencode

if @Givencode == @Code {
	// Replace settings with desired app

	openApp("com.apple.Preferences")
} else {
	confirm("Dont try again")
}
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 sameerhereiki

See All

You Might Also Like

See All
Advertisement