ShareShortcuts
Fazer fork de “Speedy Frames”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que blue receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
45K
Salvo
1
Ações
181
Categoria
Photos and videos
Versão
1.0
Idioma
EN

Pré-visualização

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.

Novidades

Versão 1.0

First release

Histórico de versões
1.0 1 de jan de 2022

First release

O que ele faz

181 ações
  1. Comment
    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-…
  2. Text
  3. Split Text
  4. Count
  5. If
  6. Text
  7. Set Variable
    Language
  8. If
  9. If
  10. Repeat with Each
  11. If
  12. Nothing
  13. If
  14. Add to Variable
  15. Get Item from List
  16. Set Variable
    Language
  17. If
  18. Dictionary
  19. Set Variable
    Menu Commands
  20. Get File
  21. Set Variable
    Frames File
  22. Count
  23. If
  24. Get Dictionary Value
  25. Show Alert
    ⚠️
  26. Get Contents of URL
    https://cdn.macstories.net/Frames.json
  27. Set Name
  28. Save File
  29. Wait
  30. Get Dictionary Value
  31. Show Alert
    ✅
  32. Get File
  33. Set Variable
    Frames File
  34. If
  35. Get Dictionary from Input
  36. Set Variable
    Frames Dictionary
  37. Get Images from Input
  38. If
  39. Get Dictionary Value
  40. Get Latest Photos
  41. Set Variable
    Screenshot
  42. If
  43. Get Images from Input
  44. Set Variable
    Screenshot
  45. Repeat with Each
  46. Set Variable
    Screenshot
  47. Get Details of Images
  48. Set Variable
    Width of Repeat Item
  49. Get Details of Images
  50. Set Variable
    Height of Repeat Item
  51. If
  52. Get Details of Images
  53. If
  54. Get Dictionary Value
  55. Set Variable
    Matched Device Dictionary
  56. If
  57. If
  58. If
  59. Get Dictionary Value
  60. Set Variable
    Matched Device Dictionary
  61. If
  62. Get Dictionary Value
  63. Set Variable
    Matched Device Dictionary
  64. Resize Image
  65. Set Variable
    Screenshot
  66. If
  67. If
  68. Get Dictionary Value
  69. Set Variable
    Matched Device Dictionary
  70. If
  71. If
  72. Get Dictionary Value
  73. Set Variable
    Matched Device Dictionary
  74. Resize Image
  75. Set Variable
    Screenshot
  76. If
  77. If
  78. Resize Image
  79. Set Variable
    Screenshot
  80. Get Dictionary Value
  81. Set Variable
    Matched Device Dictionary
  82. If
  83. If
  84. Get Dictionary Value
  85. Set Variable
    Matched Device Dictionary
  86. If
  87. If
  88. Get Dictionary Value
  89. Set Variable
    Matched Device Dictionary
  90. If
  91. If
  92. Get Details of Images
  93. If
  94. Get Dictionary Value
  95. Set Variable
    Matched Device Dictionary
  96. If
  97. If
  98. If
  99. Get Dictionary Value
  100. Set Variable
    Matched Device Dictionary
  101. If
  102. If
  103. Get Dictionary Value
  104. Set Variable
    Matched Device Dictionary
  105. If
  106. If
  107. Get Dictionary Value
  108. Set Variable
    Matched Device Dictionary
  109. If
  110. If
  111. Get Dictionary Value
  112. Set Variable
    Matched Device Dictionary
  113. If
  114. If
  115. Get Dictionary Value
  116. Set Variable
    Matched Device Dictionary
  117. If
  118. If
  119. Get Dictionary Value
  120. Set Variable
    Matched Device Dictionary
  121. If
  122. If
  123. Get Dictionary Value
  124. Set Variable
    Matched Device Dictionary
  125. If
  126. If
  127. Get Dictionary Value
  128. Set Variable
    Matched Device Dictionary
  129. If
  130. If
  131. Get Dictionary Value
  132. Set Variable
    Matched Device Dictionary
  133. If
  134. If
  135. Get Dictionary Value
  136. Set Variable
    Matched Device Dictionary
  137. If
  138. Get Dictionary Value
  139. Set Variable
    Matched Device Dictionary
  140. If
  141. Get Dictionary Value
  142. Set Variable
    Matched Device Dictionary
  143. If
  144. If
  145. Get Dictionary Value
  146. Set Variable
    Matched Device Dictionary
  147. If
  148. If
  149. Get Dictionary Value
  150. Set Variable
    Matched Device Dictionary
  151. If
  152. If
  153. Get Dictionary Value
  154. Set Variable
    Matched Device Dictionary
  155. If
  156. If
  157. Get Dictionary Value
  158. Set Variable
    Matched Device Dictionary
  159. If
  160. If
  161. Get Dictionary Value
  162. Set Variable
    Matched Device Dictionary
  163. If
  164. Base64 Encode
  165. Overlay Image
  166. Overlay Image
  167. Add to Variable
  168. Count
  169. If
  170. Get Images from Input
  171. Combine Images
  172. Set Variable
    Framed Screenshots
  173. If
  174. Convert Image
  175. Date
  176. Format Date
  177. Set Name
  178. Set Variable
    Framed Screenshots
  179. Save to Photo Album
  180. Copy to Clipboard
  181. Save File

Ver como código
Beta

Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.

#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)
Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Mais de blue

Ver tudo

Você também pode gostar

Ver tudo
Publicidade