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
SCRIPTING
If
Input
Condition
TEXT
year
Otherwise
TEXT
years
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
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
Date Taken
is
Now
Is a Screenshot
is
None
Sort by
Date Taken
Order
Oldest First
Limit
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
Otherwise
VARIABLES
Add
Input
to
Cities
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
Otherwise
VARIABLES
VARIABLES
Add
Input
to
Years
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
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
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
SCRIPTING
If
Input
Condition
SCRIPTING
If
Input
Condition
VARIABLES
Get
Repeat Item 2
Otherwise
End If
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
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
End Repeat
Otherwise
NOTHING
Nothing
End If
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
Otherwise
TEXT
photos
End If
COMMENT
Check the number of processed photos and use the phrase "They were taken" or "It was taken".
SCRIPTING
If
Input
Condition
TEXT
It was taken
Otherwise
TEXT
They were taken
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 6 days 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