Login About Gallery
On This Day
COMMENT
‎Search your photo library for old photos taken on this day in previous years. The shortcut can look for photos from multiple years, with multiple photos per day. If more than one photo is found, photos are resized to square and combined in a grid.
COMMENT
‎How many years to look for old photos?
NUMBER
‎1.0
COMMENT
‎How many photos per year?
NUMBER
‎1.0
COMMENT
‎Check the number of years and use either the word "years" or "year" for the initial message.
VARIABLES
‎Get ‎Total Years
SCRIPTING
‎If ‎Input ‎Condition
TEXT
‎year
SCRIPTING
‎Otherwise
TEXT
‎years
SCRIPTING
‎End If
SCRIPTING
‎Show ‎Now looking for photos taken on this day over the past ‎Total Years ‎Year Word ‎. I'm going to open the app to continue...
SCRIPTING
‎Continue in Shortcuts app
COMMENT
‎For each year, start repeat block.
SCRIPTING
‎Repeat ‎Total Years
DATE
‎Current Date
CALENDAR
‎Add ‎0 ‎seconds ‎from ‎Date
CALENDAR
‎Format ‎Date
‎Options Under Construction
CALENDAR
‎Format ‎Date
‎Options Under Construction
COMMENT
‎Find photos for the year the Repeat block is currently iterating upon. To remove certain albums from the search, add filters to exclude albums. Note that these filters will apply to every year.
PHOTOS
‎Find ‎All Photos ‎where
‎All the following are true
‎[{'class': 'filter-property', 'value': 'Date Taken'}, {'class': 'filter-operator', 'value': 'is'}, {'class': 'filter-benchmark', 'value': 'Now', 'glyph': '', 'UUID': ''}]
‎[{'class': 'filter-property', 'value': 'Is a Screenshot'}, {'class': 'filter-operator', 'value': 'is'}, {'class': 'filter-benchmark', 'value': 'None'}]
Sort by
‎Date Taken
Order
‎Oldest First
Limit
Files
‎Photos Per Year
VARIABLES
‎Set variable ‎Results ‎to ‎Input
COMMENT
‎Count photos found for each year used as filter.
SCRIPTING
‎Count ‎Items ‎in ‎Input
SCRIPTING
‎If ‎Input ‎Condition
VARIABLES
‎Get ‎Results
SCRIPTING
‎Repeat with each item in ‎Input
MEDIA
‎Get ‎Location ‎from ‎Image
LOCATION
‎Get ‎City ‎from ‎Location
VARIABLES
‎Get ‎Cities
SCRIPTING
‎If ‎Input ‎Condition
NOTHING
‎Nothing
SCRIPTING
‎Otherwise
VARIABLES
‎Get ‎Details of Locations
VARIABLES
‎Add ‎Input ‎to ‎Cities
SCRIPTING
‎End If
VARIABLES
‎Get ‎Repeat Item 2
MEDIA
‎Get ‎Date Taken ‎from ‎Image
CALENDAR
‎Format ‎Date
‎Options Under Construction
COMMENT
‎Create a group of years to display in a final message at the end. If the year is already contained in the variable, skip it.
VARIABLES
‎Get ‎Years
SCRIPTING
‎If ‎Input ‎Condition
NOTHING
‎Nothing
SCRIPTING
‎Otherwise
VARIABLES
‎Get ‎Formatted Date
VARIABLES
‎Add ‎Input ‎to ‎Years
SCRIPTING
‎End If
COMMENT
‎Start preparing the year overlay. The 80 number is the default value for each numeric character that later generates the Width value for Crop Image action.
VARIABLES
‎Get ‎Formatted Date
SCRIPTING
‎Count ‎Characters ‎in ‎Input
MATHS
‎Number ‎× ‎80.0
‎Options Under Construction
TEXT
‎<head> <style> h1 { font-family: -apple-system; font-weight: 800; } </style> <h1> ‎Formatted Date ‎ </h1> </head>
DOCUMENTS
‎Make rich text from ‎HTML
DOCUMENTS
‎Make PDF from ‎Input
Include
‎All Pages
MEDIA
‎Get images from ‎Input
MEDIA
‎Crop ‎Image
Position
‎Top Left
Width
‎Calculation Result
Height
‎170.0
MEDIA
‎Mask ‎Input ‎with ‎Rounded Rectangle ‎Shape
Corner Radius
‎20.0
COMMENT
‎If searching for photos for 1 year and if the result is 1 photo, keep the original photo. Otherwise, resize and crop every photo to square to later assemble a grid.
VARIABLES
‎Get ‎Total Years
SCRIPTING
‎If ‎Input ‎Condition
VARIABLES
‎Get ‎Number of Photo Results
SCRIPTING
‎If ‎Input ‎Condition
VARIABLES
‎Get ‎Repeat Item 2
SCRIPTING
‎Otherwise
SCRIPTING
‎End If
SCRIPTING
‎Otherwise
VARIABLES
‎Get ‎Repeat Item 2
MEDIA
‎Resize ‎Image ‎to ‎800.0 ‎x ‎Auto Height
COMMENT
‎Remove crop action below if you want to combine images side by side.
MEDIA
‎Crop ‎Image
Position
‎Top Left
Width
‎800.0
Height
‎800.0
SCRIPTING
‎End If
MEDIA
‎Overlay ‎Masked Image ‎on ‎Image
Show Image Editor
Position
‎Bottom Right
Width
‎100
Height
‎100
Opacity
‎100
VARIABLES
‎Add ‎Input ‎to ‎Edited
SCRIPTING
‎End Repeat
SCRIPTING
‎Otherwise
NOTHING
‎Nothing
SCRIPTING
‎End If
SCRIPTING
‎End Repeat
VARIABLES
‎Get ‎Years
TEXT
‎Split ‎Text ‎by ‎New Lines
TEXT
‎Combine ‎Text List ‎with ‎Custom ‎,
TEXT
‎Combined Text ‎Current Date
VARIABLES
‎Get ‎Edited
SCRIPTING
‎Count ‎Items ‎in ‎Input
COMMENT
‎Check the number of processed photos and use the word "photos" or "photo".
SCRIPTING
‎If ‎Input ‎Condition
TEXT
‎photo
SCRIPTING
‎Otherwise
TEXT
‎photos
SCRIPTING
‎End If
COMMENT
‎Check the number of processed photos and use the phrase "They were taken" or "It was taken".
VARIABLES
‎Get ‎Number of Processed Photos
SCRIPTING
‎If ‎Input ‎Condition
TEXT
‎It was taken
SCRIPTING
‎Otherwise
TEXT
‎They were taken
SCRIPTING
‎End If
COMMENT
‎Count locations fetched from photos and see if necessary to include a location phrase in the final Show Result action.
VARIABLES
‎Get ‎Cities

Showcuts

Magic Vars

Screenshot

Submitted Anonymously 3 years ago

This is an old shortcut, so some variables might be missing!

Visit iCloud (iOS)

Copy iCloud Link

Scan QR Code

0

20 more actions