Preview
I took Federico Viticci’s Apple Frames 2.0 and made the following modifications: 1 I deleted all of the annotations in Comment form. They’re a testament to Federico’s diligence and huge contribution to personal automation with iOS… but they’re also just extra text. 2 I replaced the Find Photos Where action with Get Latest Photos with the Include Screenshots toggle ON and the retrieval limit set to just one. 3 I deleted the entire export preferences menu and replaced it with actions that save the result both to a specific Photos folder for frames and a corresponding iCloud Drive folder. The resulting shortcut takes around 5–7 seconds to produce a single mocked up frame on my iPhone 12 Pro Max running iOS 15.3 beta after it’s triggered, and I think most of that is spent displaying the requisite notifications. See my post coming soon to https://bilge.world if you’d like to know how I rigged it up with Back Tap.
What's New
First release
What it does
181 actions-
CommentThis shortcut is a modification of Federico Viticci’s Apple Frames 2.0 optimized for creating single-shot iPhone mockups as quickly as possible. On MacStories: https://www.macstories.net/ios/apple-frames-2-0-faster-lighter-and-featuring-support-for-…
-
Text
-
Split Text
-
Count
-
If
-
Text
-
Set VariableLanguage
-
If
-
If
-
Repeat with Each
-
If
-
Nothing
-
If
-
Add to Variable
-
Get Item from List
-
Set VariableLanguage
-
If
-
Dictionary
-
Set VariableMenu Commands
-
Get File
-
Set VariableFrames File
-
Count
-
If
-
Get Dictionary Value
-
Show Alert⚠️
-
Get Contents of URLhttps://cdn.macstories.net/Frames.json
-
Set Name
-
Save File
-
Wait
-
Get Dictionary Value
-
Show Alert✅
-
Get File
-
Set VariableFrames File
-
If
-
Get Dictionary from Input
-
Set VariableFrames Dictionary
-
Get Images from Input
-
If
-
Get Dictionary Value
-
Get Latest Photos
-
Set VariableScreenshot
-
If
-
Get Images from Input
-
Set VariableScreenshot
-
Repeat with Each
-
Set VariableScreenshot
-
Get Details of Images
-
Set VariableWidth of Repeat Item
-
Get Details of Images
-
Set VariableHeight of Repeat Item
-
If
-
Get Details of Images
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
Resize Image
-
Set VariableScreenshot
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
Resize Image
-
Set VariableScreenshot
-
If
-
If
-
Resize Image
-
Set VariableScreenshot
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
Get Details of Images
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
If
-
Get Dictionary Value
-
Set VariableMatched Device Dictionary
-
If
-
Base64 Encode
-
Overlay Image
-
Overlay Image
-
Add to Variable
-
Count
-
If
-
Get Images from Input
-
Combine Images
-
Set VariableFramed Screenshots
-
If
-
Convert Image
-
Date
-
Format Date
-
Set Name
-
Set VariableFramed Screenshots
-
Save to Photo Album
-
Copy to Clipboard
-
Save File
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/web'
#define color red
#define glyph iPadAlt
/*
This shortcut is a modification of Federico Viticci’s Apple Frames 2.0 optimized for creating single-shot iPhone mockups as quickly as possible.
On MacStories: https://www.macstories.net/ios/apple-frames-2-0-faster-lighter-and-featuring-support-for-iphone-13-ipad-mini-ipad-10-2-imac-24-macbook-air-and-multiple-languages/
My post: https://bilge.world/speedy-frames
*/
const Text = "English"
const SplitText = splitText(Text)
const Count = count(SplitText)
if Count == 0 {
@Language = "English"
} else {
if Count >= 1 {
for _ in SplitText {
if !@RepeatItem {
} else {
@Language = @RepeatItem
}
}
@Language = getRandomItem(@Language)
} else {
}
}
@MenuCommands = {
"Copy": {
"Dutch": "Kopieer",
"English": "Copy",
"French": "Copier",
"German": "Kopieren",
"Italian": "Copia",
"Portuguese": "Copiar",
"Spanish": "Copiar"
},
"Copy JPEG": {
"Dutch": "Kopieer als JPEG",
"English": "Copy as JPEG",
"French": "Copier au JPEG",
"German": "Als JPEG kopieren",
"Italian": "Copia come JPEG",
"Portuguese": "Copiar como JPEG",
"Spanish": "Copiar como JPEG"
},
"File Naming": {
"Dutch": "Wijzig Naam",
"English": "Rename File",
"French": "Renommer fichier",
"German": "Die Datei Umbennen",
"Italian": "Rinomina File",
"Portuguese": "Renomear Arquivo",
"Spanish": "Renombrar Archivo"
},
"Files": {
"Dutch": "Bewaar in Bestanden",
"English": "Save to Files",
"French": "Sauvegarder sur Fichiers",
"German": "In Dateien sichern",
"Italian": "Salva su File",
"Portuguese": "Salvar em Arquivos ",
"Spanish": "Guardar en Archivos"
},
"Image Picker": {
"Dutch": "Kies Afbeeldingen",
"English": "Pick Images",
"French": "Sélectionner les images",
"German": "Fotos aussuchen",
"Italian": "Scegli Immagini",
"Portuguese": "Escolher Imagens",
"Spanish": "Escoger Imágenes"
},
"Photos": {
"Dutch": "Bewaar in Foto's",
"English": "Save to Photos",
"French": "Sauvegarder sur Photos",
"German": "In Fotos sichern",
"Italian": "Salva su Foto",
"Portuguese": "Salvar em Fotos",
"Spanish": "Guardar en Fotos"
},
"Preview": {
"Dutch": "Voorbeeld",
"English": "Preview",
"French": "Previsualiser",
"German": "Vorschauen",
"Italian": "Anteprima",
"Portuguese": "Pré-apresentação",
"Spanish": "Vista Previa"
},
"Setup Done": {
"Dutch": "{}",
"English": "{}",
"French": "{}",
"German": "{}",
"Italian": "{}",
"Portuguese": "{}",
"Spanish": "{}"
},
"Setup File": {
"Dutch": "{}",
"English": "{}",
"French": "{}",
"German": "{}",
"Italian": "{}",
"Portuguese": "{}",
"Spanish": "{}"
},
"Share": {
"Dutch": "Deel",
"English": "Share",
"French": "Partager",
"German": "Teilen",
"Italian": "Condividi",
"Portuguese": "Compartilhar",
"Spanish": "Compartir"
}
}
getFileFromFolder(, "Frames.json", false)
@FramesFile
const Count1 = count(@FramesFile)
if Count1 == 0 {
const SetupFileMessage = @MenuCommands["Setup File.{@Language}"]
alert(SetupFileMessage, "⚠️")
const ContentsOfURL = downloadURL("https://cdn.macstories.net/Frames.json")
const RenamedItem = setName(ContentsOfURL, "Frames.json")
saveFilePrompt(RenamedItem)
wait(2)
const SetupDoneMessage = @MenuCommands["Setup Done.{@Language}"]
alert(SetupDoneMessage, "✅ ")
getFile("Frames.json", false)
@FramesFile
} else {
}
getDictionary(@FramesFile)
@FramesDictionary
const ImagesInput = getImages(ShortcutInput)
if !ImagesInput {
const ImagePickerTitle = @MenuCommands["Image Picker.{@Language}"]
getLatestPhotos(0)
@Screenshot
} else {
getImages(ImagesInput)
@Screenshot
}
for _ in IfResult {
@Screenshot = @RepeatItem
getImageDetail(@RepeatItem, "Width")
@WidthOfRepeatItem
getImageDetail(@RepeatItem, "Height")
@HeightOfRepeatItem
if @WidthOfRepeatItem == 1242 {
const DetailsOfImages = getImageDetail(@RepeatItem, "Height")
if DetailsOfImages == 2688 {
@MatchedDeviceDictionary = @FramesDictionary['iPhone.11.Pro Max.Portrait']
}
} else {
if @WidthOfRepeatItem == 1125 {
if @HeightOfRepeatItem != 2436 {
@MatchedDeviceDictionary = @FramesDictionary['iPhone.11.Pro.Portrait']
} else {
@MatchedDeviceDictionary = @FramesDictionary['iPhone.12-13.mini.Portrait']
resizeImage(@RepeatItem, "1080", "2340")
@Screenshot
}
} else {
if @WidthOfRepeatItem == 2688 {
@MatchedDeviceDictionary = @FramesDictionary['iPhone.11.Pro Max.Landscape']
} else {
if @WidthOfRepeatItem == 2436 {
@MatchedDeviceDictionary = @FramesDictionary['iPhone.12-13.mini.Landscape']
resizeImage(@RepeatItem, "2340", "1080")
@Screenshot
} else {
if @WidthOfRepeatItem == 368 {
resizeImage(@RepeatItem, 368)
@Screenshot
@MatchedDeviceDictionary = @FramesDictionary['Watch.Series 4.44']
} else {
if @WidthOfRepeatItem == 750 {
@MatchedDeviceDictionary = @FramesDictionary['iPhone.iPhone 8 and 2020 SE.Portrait']
} else {
if @WidthOfRepeatItem == 2732 {
@MatchedDeviceDictionary = @FramesDictionary['iPad.2018-2021 iPad Pro.Landscape']
} else {
if @WidthOfRepeatItem == 2048 {
const Height = getImageDetail(@RepeatItem, "Height")
if Height != 1536 {
@MatchedDeviceDictionary = @FramesDictionary['iPad.2018-2021 iPad Pro.Portrait']
} else {
}
} else {
if @WidthOfRepeatItem == 2208 {
@MatchedDeviceDictionary = @FramesDictionary['iPad.2021 iPad mini.Portrait']
} else {
if @WidthOfRepeatItem == 1334 {
@MatchedDeviceDictionary = @FramesDictionary['iPad.2021 iPad mini.Landscape']
} else {
if @WidthOfRepeatItem == 2388 {
@MatchedDeviceDictionary = @FramesDictionary['iPad.2018-2021 iPad Pro 11.Landscape']
} else {
if @WidthOfRepeatItem == 1668 {
@MatchedDeviceDictionary = @FramesDictionary['iPad.2018-2021 iPad Pro 11.Portrait']
} else {
if @WidthOfRepeatItem contains 324 {
@MatchedDeviceDictionary = @FramesDictionary['Watch.Series 4.40']
} else {
if @WidthOfRepeatItem == 828 {
@MatchedDeviceDictionary = @FramesDictionary['iPhone.11.11.Portrait']
} else {
if @WidthOfRepeatItem == 1792 {
@MatchedDeviceDictionary = @FramesDictionary['iPhone.11.11.Landscape']
} else {
if @HeightOfRepeatItem == 2532 {
@MatchedDeviceDictionary = @FramesDictionary['iPhone.12-13.Pro.Portrait']
} else {
if @WidthOfRepeatItem == 2532 {
@MatchedDeviceDictionary = @FramesDictionary['iPhone.12-13.Pro.Landscape']
} else {
if @WidthOfRepeatItem == 1284 {
@MatchedDeviceDictionary = @FramesDictionary['iPhone.12-13.Pro Max.Portrait']
} else {
@MatchedDeviceDictionary = @FramesDictionary['iPhone.12-13.Pro Max.Landscape']
if @WidthOfRepeatItem == 2360 {
@MatchedDeviceDictionary = @FramesDictionary['iPad.2020 iPad Air.Landscape']
} else {
if @WidthOfRepeatItem == 1640 {
@MatchedDeviceDictionary = @FramesDictionary['iPad.2020 iPad Air.Portrait']
} else {
if @WidthOfRepeatItem == 4480 {
@MatchedDeviceDictionary = @FramesDictionary['Mac.2021 iMac']
} else {
if @WidthOfRepeatItem == 2160 {
@MatchedDeviceDictionary = @FramesDictionary['iPad.2021 iPad.Landscape']
} else {
if @WidthOfRepeatItem == 1620 {
@MatchedDeviceDictionary = @FramesDictionary['iPad.2021 iPad.Portrait']
} else {
if @WidthOfRepeatItem == 2560 {
@MatchedDeviceDictionary = @FramesDictionary['Mac.2020 MacBook Air']
} else {
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
const DecodedFrame = base64Encode(@MatchedDeviceDictionary)
const OverlaidImage = customImageOverlay(DecodedFrame, @Screenshot, "0", "100", "Custom", @MatchedDeviceDictionary, @MatchedDeviceDictionary)
customImageOverlay(OverlaidImage, DecodedFrame, "0", "100")
@FramedScreenshots
}
const Count2 = count(@FramedScreenshots)
if Count2 > 1 {
const Images = getImages(@FramedScreenshots)
rawAction("is.workflow.actions.image.combine", {
"WFImageCombineMode": "In a Grid",
"WFImageCombineSpacing": 60,
"WFInput": "Images"
})
@FramedScreenshots
} else {
}
const ConvertedImage = convertImage(@FramedScreenshots, "PNG", false)
currentDate()
formatDate(, "Custom", "EEEE, dd MMM yyyy HH:mm:ss")
setName(ConvertedImage)
@FramedScreenshots
const SavedPhotoMedia = savePhoto(@FramedScreenshots)
setClipboard(SavedPhotoMedia)
saveFilePrompt(SavedPhotoMedia)
Ratings & Reviews
Write a ReviewNo reviews yet. Be the first to share what you think!