Preview
Welcome to Photos Archiver Version-1.0. Photos Archiver is a Shortcuts which helps you to archive Photos & Videos from iPhone Photos App. The main purpose of this Shortcut is to share your media files with quality lossless feature by archiving media into a .ZIP format. This Shortcuts has been included mainly three modules called Archive, Unarchive and Clear-All. Each of these functionalities are described below. • Archive Archive option mainly use to archive Photos & Videos. On first step, select media(s) then following by assigning an optional file name will store as ZIP file at path "iCloud Drive/Shortcuts/Photos Archiver/Archives". You can share file(s) for various transfer from the mentioned path. • Unarchive This option is to unarchive a ZIP file. To unarchive, initially locate the archived file and select for extraction process. The extracted files will be saved at path "iCloud Drive/Shortcuts/Photos Archiver/Unarchives". You can locate and save extracted files from the above mentioned path. • Clear-All To save storage spaces by preventing accumulation of Archived/Unarchived files, Clear-All function will helps you to permanently delete all files from Photos Archiver sub folders. A single click will help you to save your time to manage clear accumulated data. Application : Photos Archiver Version : 1.0 Developer : Rahul R Nath Published On : 22-Jan-2021 Made for Apple
What's New
First release
What it does
69 actions-
Date
-
Set VariablePublish
-
Text
-
Set VariableDeveloperNote
-
Dictionary
-
Set VariableApplication Name
-
Set VariableVersion
-
Set VariableDeveloper
-
Set VariableArchives
-
Set VariableUnarchives
-
Set VariablePath
-
Create Folder
-
Create Folder
-
Text
-
Text
-
Choose from Menu
-
Choose from Menu• Archive
-
Select Photos
-
Get File
-
Count
-
Set VariableArchiveCount
-
Calculate
-
Ask for InputEnter file name
-
Set VariableInput Name
-
Date
-
Format Date
-
Set VariableArchive DateTime
-
Text
-
Set VariableArchive Name
-
Make Archive
-
Get Details of Files
-
Set VariableArchive Extension
-
Save File
-
Show Notification….… has been saved to …/…
-
Run ShortcutPhotos Archiver
-
Choose from Menu• Unarchive
-
Get File
-
Get Details of Files
-
Get Details of Files
-
Set VariableSelected Archive Name
-
Set VariableSelected Archive Extension
-
Extract Archive
-
Save File
-
Show Notification….… has been extracted to …/…
-
Run ShortcutPhotos Archiver
-
Choose from Menu• Clear-All
-
Get File
-
Count
-
Set VariableArchive Count
-
Get File
-
Count
-
Set VariableUnarchive Count
-
Calculate
-
Choose from MenuClear-All will delete all data from … folders. Do you want to continue ?
-
Choose from MenuYes
-
Delete Files
-
Delete Files
-
Show Notification… file(s) has permanently deleted from … folder.
-
Run ShortcutPhotos Archiver
-
Choose from MenuNo
-
Run ShortcutPhotos Archiver
-
Choose from MenuAbout
-
Show Result
-
Run ShortcutPhotos Archiver
-
Choose from MenuHelp
-
Show Result
-
Run ShortcutPhotos Archiver
-
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/photos'
#include 'actions/documents'
#include 'actions/calendar'
#define color darkblue
#define glyph threeDSquareStack
currentDate()
@Publish
@DeveloperNote = "Made for Apple "
@ApplicationName = {
"1": "Photos Archiver",
"2": "1.0",
"3": "Rahul R Nath",
"4": "Photos Archiver/Archives",
"5": "Photos Archiver/Unarchives",
"6": "Shortcuts"
}
@Version = ['2']
@Developer = ['3']
@Archives = ['4']
@Unarchives = ['5']
@Path = ['6']
createFolder(@Archives)
createFolder(@Unarchives)
menu "" {
item "• Archive":
const Photos = selectPhotos(true)
const File = getFile(@Archives)
count(File)
@ArchiveCount
prompt("Enter file name")
@InputName
currentDate()
formatDate(, "Custom", "ddMMyyHHmmss")
@ArchiveDateTime
@ArchiveName = "{@ArchiveDateTime}_{@InputName}[{@Version}]"
const Archive = makeArchive(Photos, @ArchiveName)
getFileDetail(nil, "File Extension")
@ArchiveExtension
const SavedFile = saveFile(@Archives, Archive, true)
showNotification("{@ArchiveName}.{@ArchiveExtension} has been saved to {@Path}/{@Archives}", "Archive Created!", false, SavedFile)
runSelf(SavedFile)
item "• Unarchive":
const File1 = getFile(@Archives)
getFileDetail(nil, "Name")
getFileDetail(nil, "File Extension")
@SelectedArchiveName
@SelectedArchiveExtension
const Files = extractArchive(File1)
saveFile(@Unarchives, Files)
showNotification("{@SelectedArchiveName}.{@SelectedArchiveExtension} has been extracted to {@Path}/{@Unarchives}", "Archive Extracted!", false, SavedFile)
runSelf(SavedFile)
item "• Clear-All":
const File2 = getFile(@Archives, false)
count(File2)
@ArchiveCount
const File3 = getFile(@Unarchives, false)
count(File3)
@UnarchiveCount
const CalculationResult = @ArchiveCount + @UnarchiveCount
menu "Clear-All will delete all data from {@ApplicationName} folders. Do you want to continue ?" {
item "Yes":
deleteFiles(File2)
deleteFiles(File3)
showNotification("{CalculationResult} file(s) has permanently deleted from {@ApplicationName} folder.", "Data Cleared!", false, CalculationResult)
runSelf(SavedFile)
item "No":
runSelf()
}
item "About":
show()
runSelf(SavedFile)
item "Help":
show()
const ShortcutResult = runSelf(SavedFile)
item "Exit":
stop()
}
Ratings & Reviews
Write a ReviewNo reviews yet. Be the first to share what you think!