ShareShortcuts

Photos Archiver

Welcome to Photos Archiver Version-1.0

rahulrnath
Fork “Photos Archiver”

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 rahulrnath 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
53K
Saved
2
Actions
69
Category
Productivity
Version
1.0
Language
EN

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

Version 1.0

First release

Version History
1.0 Jan 22, 2021

First release

What it does

69 actions
  1. Date
  2. Set Variable
    Publish
  3. Text
  4. Set Variable
    DeveloperNote
  5. Dictionary
  6. Set Variable
    Application Name
  7. Set Variable
    Version
  8. Set Variable
    Developer
  9. Set Variable
    Archives
  10. Set Variable
    Unarchives
  11. Set Variable
    Path
  12. Create Folder
  13. Create Folder
  14. Text
  15. Text
  16. Choose from Menu
  17. Choose from Menu
    • Archive
  18. Select Photos
  19. Get File
  20. Count
  21. Set Variable
    ArchiveCount
  22. Calculate
  23. Ask for Input
    Enter file name
  24. Set Variable
    Input Name
  25. Date
  26. Format Date
  27. Set Variable
    Archive DateTime
  28. Text
  29. Set Variable
    Archive Name
  30. Make Archive
  31. Get Details of Files
  32. Set Variable
    Archive Extension
  33. Save File
  34. Show Notification
    ….… has been saved to …/…
  35. Run Shortcut
    Photos Archiver
  36. Choose from Menu
    • Unarchive
  37. Get File
  38. Get Details of Files
  39. Get Details of Files
  40. Set Variable
    Selected Archive Name
  41. Set Variable
    Selected Archive Extension
  42. Extract Archive
  43. Save File
  44. Show Notification
    ….… has been extracted to …/…
  45. Run Shortcut
    Photos Archiver
  46. Choose from Menu
    • Clear-All
  47. Get File
  48. Count
  49. Set Variable
    Archive Count
  50. Get File
  51. Count
  52. Set Variable
    Unarchive Count
  53. Calculate
  54. Choose from Menu
    Clear-All will delete all data from … folders. Do you want to continue ?
  55. Choose from Menu
    Yes
  56. Delete Files
  57. Delete Files
  58. Show Notification
    … file(s) has permanently deleted from … folder.
  59. Run Shortcut
    Photos Archiver
  60. Choose from Menu
    No
  61. Run Shortcut
    Photos Archiver
  62. Choose from Menu
    About
  63. Show Result
  64. Run Shortcut
    Photos Archiver
  65. Choose from Menu
    Help
  66. Show Result
  67. Run Shortcut
    Photos Archiver
  68. Choose from Menu
    Exit
  69. Stop This Shortcut

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/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()
}
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 rahulrnath

See All

You Might Also Like

See All
Advertisement