Scan with your iPhone to install
ViewBox is a shortcut used to view the inside of a box without opening it
-
Just open ViewBox then Press Generate Code and wait for a popup with your code
-
Press Ok then you will get a popup saying to get your box ready as you will be taking your photos
-
Now a popup saying how many photos will appear put your desired amount then take your photos
(It may take longer for the photos to load depending on how many photos you take)
- Now after your photos have been saved you can view them click View Box then enter your code with “.zip” at the end
What's New
Version 1.1
Added an exit button and delete Box button
What it does
33 actions-
Create Folder
-
Choose from MenuWelcome to ViewBox
-
Choose from MenuAdd Box
-
Text
-
Set VariableNumbers
-
List
-
Filter Files
-
Get Item from List
-
Combine Text
-
Show Alert
-
Show NotificationPlease write your code onto your box
-
Show AlertYou are going to take your photos now
-
Take Photo
-
Make Archive
-
Save File
-
Show NotificationYour box has been saved your code is:…
-
Stop This Shortcut
-
Choose from MenuView Box
-
Ask for InputPlease enter your code with “.zip” at the end
-
Get File
-
Extract Archive
-
Quick Look
-
Stop This Shortcut
-
Choose from MenuDelete Box
-
Ask for InputPlease enter your code with “.zip” at the end
-
Get File
-
Extract Archive
-
Quick Look
-
Show Alert⚠️ Warning ⚠️
-
Delete Files
-
Stop This Shortcut
-
Choose from MenuExit
-
Stop This Shortcut
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/media'
#include 'actions/documents'
#define color lightblue
#define glyph cube
createFolder("ViewBox")
menu "Welcome to ViewBox " {
item "Add Box":
@Numbers = "4"
const List = list("1", "2", "3", "4", "5", "6", "7", "8", "9", "0")
const Files = filterFiles(List, "Random")
const ItemFromList = getListItems(Files, 0, @Numbers)
const CombinedText = joinText(ItemFromList, "Custom")
confirm("Your code is: {CombinedText}")
showNotification("Please write your code onto your box", CombinedText)
alert("Please get your box ready", "You are going to take your photos now")
const Photo = takePhoto(Ask, true)
const Archive = makeArchive(Photo, "zip", CombinedText)
saveFile("ViewBox/{CombinedText}", Archive)
showNotification("Your box has been saved your code is:{CombinedText}", "Thank you for using ViewBox", false)
stop()
item "View Box":
prompt("Please enter your code with “.zip” at the end")
const File = getFile("ViewBox/{}")
const Files1 = extractArchive(File)
quicklook(Files1)
stop()
item "Delete Box":
prompt("Please enter your code with “.zip” at the end")
const File1 = getFile("ViewBox/{}")
const Files2 = extractArchive(File1)
quicklook(Files2)
alert("Are you sure you want to delete these photos?", "⚠️ Warning ⚠️ ")
deleteFiles(File1)
stop()
item "Exit":
stop()
}
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 smarties
You Might Also Like
Advertisement