ShareShortcuts

rOS 1

This is an OS in shortcuts

radancze
Создать форк «rOS 1»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы radancze получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
30K
Сохранено
1
Действия
147
Категория
Utilities
Версия
1.0
Язык
EN

Просмотр

This is an OS in shortcuts. You can download it now!

Что нового

Версия 1.0

First release

История версий
1.0 8 авг 2023 г.

First release

Что делает

Действий: 147
  1. Create Folder
  2. Get Contents of Folder
  3. If
  4. If
  5. Create Folder
  6. Get Contents of Folder
  7. If
  8. If
  9. Get Contents of Folder
  10. If
  11. Get Contents of Folder
  12. Get Contents of Folder
  13. Get Contents of Folder
  14. If
  15. Ask for Input
    Welcome …, Type your password to continue.
  16. If
  17. Show Notification
    Welcome …
  18. Random Number
  19. Wait
  20. If
  21. Show Alert
  22. Run Shortcut
    rOS
  23. Stop This Shortcut
  24. If
  25. Show Notification
    Welcome …
  26. If
  27. Get Contents of Folder
  28. Delete Files
  29. Choose from Menu
    rOS
  30. Choose from Menu
    Camera
  31. Choose from Menu
    Which one?
  32. Choose from Menu
    Photo
  33. Take Photo
  34. Choose from Menu
    Do you want to save it?
  35. Choose from Menu
    Yes
  36. Save to Photo Album
  37. Run Shortcut
    rOS
  38. Stop This Shortcut
  39. Choose from Menu
    No
  40. Run Shortcut
    rOS
  41. Stop This Shortcut
  42. Choose from Menu
    Video
  43. Take Video
  44. Choose from Menu
    Do you want to save it?
  45. Choose from Menu
    Yes
  46. Save to Photo Album
  47. Run Shortcut
    rOS
  48. Stop This Shortcut
  49. Choose from Menu
    No
  50. Run Shortcut
    rOS
  51. Stop This Shortcut
  52. Choose from Menu
    Close
  53. Run Shortcut
    rOS
  54. Stop This Shortcut
  55. Choose from Menu
    Settings
  56. Get Contents of Folder
  57. Choose from Menu
    Welcome …, what would you like to do?
  58. Choose from Menu
    WiFi
  59. Choose from Menu
    Do you want to turn wifi on or off?
  60. Choose from Menu
    On
  61. Set Wi-Fi
  62. Run Shortcut
    rOS
  63. Stop This Shortcut
  64. Choose from Menu
    Off
  65. Set Wi-Fi
  66. Run Shortcut
    rOS
  67. Stop This Shortcut
  68. Choose from Menu
    Reset rOS
  69. Choose from Menu
    Are you sure to reset rOS? This action can’t be undone!
  70. Choose from Menu
    Yes
  71. File
  72. Delete Files
  73. Run Shortcut
    rOS
  74. Stop This Shortcut
  75. Choose from Menu
    No
  76. Run Shortcut
    rOS
  77. Stop This Shortcut
  78. Choose from Menu
    Close
  79. Run Shortcut
    rOS
  80. Stop This Shortcut
  81. Choose from Menu
    Start
  82. Choose from Menu
    Start
  83. Choose from Menu
    Power
  84. Choose from Menu
    Power
  85. Choose from Menu
    Shut Down
  86. Choose from Menu
    Restart
  87. Choose from Menu
    Start
  88. Run Shortcut
    rOS
  89. Stop This Shortcut
  90. Stop This Shortcut
  91. Show Notification
    Loading rOS…
  92. Wait
  93. Show Notification
    Loading rOS… Downloading services…
  94. Wait
  95. Show Notification
    Loading rOS… Installing services…
  96. Create Folder
  97. Create Folder
  98. Create Folder
  99. Wait
  100. Ask for Input
    Welcome, how should we call you?
  101. If
  102. Show Alert
  103. Stop This Shortcut
  104. If
  105. If
  106. Show Alert
  107. Stop This Shortcut
  108. If
  109. Create Folder
  110. Choose from Menu
    Do you want a password or nothing?
  111. Choose from Menu
    Password (recommended)
  112. Ask for Input
    Create a password
  113. Create Folder
  114. Choose from Menu
    Nothing (not recommended)
  115. Show Notification
    Hi.
  116. Wait
  117. Show Notification
    We’re getting everything ready for you.
  118. Wait
  119. Show Notification
    This might take some time, relax until we will finish the work.
  120. Wait
  121. Show Notification
    We’re almost done.
  122. Wait
  123. Show Notification
    We’re done!
  124. Create Folder
  125. Create Folder
  126. Run Shortcut
    rOS
  127. Stop This Shortcut
  128. Show Notification
    Loading rOS…
  129. Wait
  130. Choose from Menu
    Welcome to the setup! To continue press install, to exit press close.
  131. Choose from Menu
    Install
  132. Show Notification
    Please wait…
  133. Wait
  134. Choose from Menu
    Close
  135. Show Alert
  136. Stop This Shortcut
  137. Show Notification
    Installing… this may take some time.
  138. Random Number
  139. Wait
  140. Create Folder
  141. Create Folder
  142. Create Folder
  143. Show Notification
    Installation finished. Restarting…
  144. Wait
  145. Nothing
  146. Run Shortcut
    rOS
  147. Stop This Shortcut

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#include 'actions/photos'
#include 'actions/media'
#include 'actions/documents'
#define color green
#define glyph gear

createFolder("rOS")
const ContentsOfFolder = getFolderContents()

if !ContentsOfFolder {
} else {
	createFolder("rOS service")
	const ContentsOfFolder1 = getFolderContents()
	if !ContentsOfFolder1 {
	} else {
		const ContentsOfFolder2 = getFolderContents()
		if !ContentsOfFolder2 {
			getFolderContents()
			getFolderContents()
			const ContentsOfFolder3 = getFolderContents()
			if ContentsOfFolder3 {
				const ProvidedInput = prompt("Welcome {}, Type your password to continue.", false)
				if ProvidedInput ==  {
					showNotification("Welcome {}", false)
					const RandomNumber = randomNumber(4, 8)
					wait(RandomNumber)
				} else {
					confirm("Incorrect password!")
					runSelf()
					stop()
				}
			} else {
				showNotification("Welcome {}", ContentsOfFolder3)
			}
		} else {
		}
		const ContentsOfFolder4 = getFolderContents()
		deleteFiles(ContentsOfFolder4, true)
		menu "rOS" {
		item "Camera":
			menu "Which one?" {
			item "Photo":
				const Photo = takePhoto(1, true)
				menu "Do you want to save it?" {
				item "Yes":
					const SavedPhotoMedia = savePhoto(Photo)
					runSelf(SavedPhotoMedia)
					stop()
				item "No":
					runSelf()
					stop()
				}
			item "Video":
				const Video = takeVideo(Ask, Ask, "On Tap")
				menu "Do you want to save it?" {
				item "Yes":
					const SavedPhotoMedia1 = savePhoto(Video)
					runSelf(SavedPhotoMedia1)
					stop()
				item "No":
					runSelf(SavedPhotoMedia1)
					stop()
				}
			item "Close":
				runSelf()
				stop()
			}
		item "Settings":
			getFolderContents()
			menu "Welcome {}, what would you like to do?" {
			item "WiFi":
				menu "Do you want to turn wifi on or off?" {
				item "On":
					setWifi(false)
					runSelf()
					stop()
				item "Off":
					setWifi(0)
					runSelf()
					stop()
				}
			item "Reset rOS":
				menu "Are you sure to reset rOS? This action can’t be undone!" {
				item "Yes":
					const Folder = file()
					deleteFiles(Folder, true)
					runSelf(Folder)
					stop()
				item "No":
					runSelf(Folder)
					stop()
				}
			item "Close":
				runSelf(Folder)
				stop()
			}
		item "Start":
			menu "Start" {
			item "Power":
				menu "Power" {
				item "Shut Down":
				item "Restart":
				}
			item "Start":
				runSelf()
				stop()
			}
		}
		stop()
	}
	showNotification("Loading rOS…", false)
	wait(8)
	showNotification("Loading rOS… Downloading services…", false)
	wait(1)
	showNotification("Loading rOS… Installing services…", false)
	createFolder("Username service")
	createFolder("Password service")
	createFolder("Welcome service")
	wait(8)
	const Username = prompt("Welcome, how should we call you?", false)
	if !Username {
		confirm("You can’t have a blank name.")
		stop()
	} else {
		if Username == " " {
			confirm("Your name can’t be just a space.")
			stop()
		} else {
		}
	}
	createFolder(Username)
	menu "Do you want a password or nothing?" {
	item "Password (recommended)":
		const Password = prompt("Create a password", false)
		createFolder(Password)
	item "Nothing (not recommended)":
	}
	showNotification("Hi.", false)
	wait(1)
	showNotification("We’re getting everything ready for you.", false)
	wait(1)
	showNotification("This might take some time, relax until we will finish the work.", false)
	wait(15)
	showNotification("We’re almost done.", false)
	wait(15)
	showNotification("We’re done!", false)
	createFolder("Install.finished")
	createFolder("NoLoginScreen")
	runSelf()
	stop()
}
showNotification("Loading rOS…", false)
wait(4)

menu "Welcome to the setup! To continue press install, to exit press close." {
item "Install":
	showNotification("Please wait…", false)
	wait(2)
item "Close":
	confirm("Installation canceled.")
	stop()
}
showNotification("Installing… this may take some time.", false)
const RandomNumber1 = randomNumber(20, 60)
wait(RandomNumber1)
createFolder("Services")
createFolder("Install service")
createFolder("Setup.finished")
showNotification("Installation finished. Restarting…", false)
wait(4)
nothing()
runSelf()
stop()
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Вам также может понравиться

См. все
Реклама