Login About Gallery
Frame Screenshots
COMMENT
‎This shortcut allows to add device frames to screenshots. Additional frames can be added manually to the iCloud folder, and managed from this shortcut without any modifications to it. Initially it offers a set of iPhone 13 portrait frames (all models and colors, updated 2021-09-24). The shortcut also generating landscape frames from existing portrait ones. — @atnbueno (2020-12-28)
DICTIONARY
VARIABLES
‎Set variable ‎Shortcut ‎to ‎Dictionary
SCRIPTING
‎If ‎Shortcut Input ‎contains ‎"Frames":
URL
‎data:text/html;charset=utf-8,<pre><script>with(JSON){let dict=parse(` ‎Shortcut Input ‎`),keys=[];stringify(dict,(key,value)=>{keys.push(key);return value});document.write(stringify(dict,keys.sort(),4))}</script></pre>
SCRIPTING
‎Get file of type ‎com.apple.webarchive ‎from ‎URL
VARIABLES
‎Set variable ‎Configuration ‎to ‎File of Type
SCRIPTING
‎Set name of ‎Configuration ‎to ‎Shortcut
DOCUMENTS
‎Save ‎Renamed Item
Service
‎iCloud Drive
Ask Where to Save
Destination Path
‎[{'value': '/Shortcuts/', 'class': 'text'}, {'class': 'magic', 'value': 'Shortcut', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}]
Overwrite If File Exists
MISSING
‎output Under Construction
SCRIPTING
‎End If
SCRIPTING
‎If ‎Shortcut Input ‎is ‎Download Default Frames
DOCUMENTS
‎Get File
Service
‎iCloud Drive
Show Document Picker
Select Multiple
SCRIPTING
‎If ‎File ‎does not have any value
DOCUMENTS
‎Create Folder
Service
‎iCloud Drive
Path
‎[{'value': '/Shortcuts/', 'class': 'text'}, {'class': 'magic', 'value': 'Shortcut', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}]
SCRIPTING
‎End If
NETWORK
‎Get contents of ‎Shortcut
‎Options Under Construction
DOCUMENTS
‎Extract ‎Contents of URL
DOCUMENTS
‎Save ‎Files
Service
‎iCloud Drive
Ask Where to Save
Destination Path
‎[{'value': '/Shortcuts/', 'class': 'text'}, {'class': 'magic', 'value': 'Shortcut', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}]
Overwrite If File Exists
SCRIPTING
‎Count ‎Items ‎in ‎Saved File
SCRIPTING
‎Repeat with each item in ‎Saved File
TEXT
‎Repeat Item
SCRIPTING
‎End Repeat
MISSING
‎output Under Construction
SCRIPTING
‎End If
SCRIPTING
‎If ‎Shortcut Input ‎is ‎Scan Frames Folder
DOCUMENTS
‎Get File
Service
‎iCloud Drive
Show Document Picker
File Path
‎/Shortcuts/example.txt
Error If Not Found
SCRIPTING
‎If ‎File ‎has any value
SCRIPTING
‎Get dictionary from ‎File
SCRIPTING
‎Otherwise
DICTIONARY
SCRIPTING
‎End If
VARIABLES
‎Set variable ‎Configuration ‎to ‎If Result
DOCUMENTS
‎Get File
Service
‎iCloud Drive
Show Document Picker
File Path
‎/Shortcuts/example.txt
Error If Not Found
MISSING
‎file.getfoldercontents Under Construction
FILES
‎Filter ‎Contenido de la carpeta ‎where
‎All the following are true
‎[{'class': 'filter-property', 'value': 'File Extension'}, {'class': 'filter-operator', 'value': 'is'}, {'class': 'filter-benchmark', 'value': 'png'}]
‎[{'class': 'filter-property', 'value': 'Name'}, {'class': 'filter-operator', 'value': 'contains'}, {'class': 'filter-benchmark', 'value': 'x'}]
‎[{'class': 'filter-property', 'value': 'Name'}, {'class': 'filter-operator', 'value': 'contains'}, {'class': 'filter-benchmark', 'value': '+'}]
‎[{'class': 'filter-property', 'value': 'Name'}, {'class': 'filter-operator', 'value': 'contains'}, {'class': 'filter-benchmark', 'value': ' '}]
Sort by
‎Name
Order
‎A to Z
Limit
SCRIPTING
‎If ‎Archivos ‎has any value
SCRIPTING
‎Set ‎Frames ‎to ‎Archivos ‎in ‎Dictionary
SCRIPTING
‎Otherwise
SCRIPTING
‎Show alert ‎WARNING
Title
‎WARNING
Show Cancel Button
TEXT
‎Download Default Frames
SHORTCUTS
‎Run ‎Shortcut
Input
‎Texto
Show While Running
SCRIPTING
‎Set ‎Frames ‎to ‎Shortcut Result ‎in ‎Dictionary
SCRIPTING
‎End If
VARIABLES
‎Set variable ‎Configuration ‎to ‎If Result
SCRIPTING
‎Repeat with each item in ‎Configuration
DOCUMENTS
‎Get File
Service
‎iCloud Drive
Show Document Picker
File Path
‎/Shortcuts/example.txt
Error If Not Found
SCRIPTING
‎If ‎File ‎does not contain ‎~
DOCUMENTS
‎Replace ‎(\d+)x(\d+)\+(\d+)\+(\d+) (.+) ‎with ‎" ‎File ‎":{"frame":{"filename":" ‎File ‎.png","height": ‎Repeat Item ‎,"name":"$5","width": ‎Repeat Item ‎},"screenshot":{"height":$2,"width":$1,"x":$3,"y":$4}} ‎in ‎Repeat Item
Case Sensitive
Regular Expression
SCRIPTING
‎Otherwise
DOCUMENTS
‎Replace ‎(\d+)x(\d+)~(\d+)x(\d+)\+(\d+)\+(\d+) (.+) ‎with ‎" ‎File ‎":{"frame":{"filename":" ‎File ‎.png","height": ‎Repeat Item ‎,"name":"$7","width": ‎Repeat Item ‎},"screenshot":{"height":$4,"width":$3,"x":$5,"y":$6},"resize":{"height":$2,"width":$1}} ‎in ‎Repeat Item
Case Sensitive
Regular Expression
SCRIPTING
‎End If
SCRIPTING
‎End Repeat
TEXT
‎Combine ‎Repeat Results ‎with ‎Custom ‎,
TEXT
‎{ ‎Combined Text ‎}
SCRIPTING
‎Get dictionary from ‎Text
SCRIPTING
‎Set ‎Frames ‎to ‎Dictionary ‎in ‎Dictionary
VARIABLES
‎Set variable ‎Configuration ‎to ‎Dictionary
SCRIPTING
‎Get ‎All Keys ‎in ‎Configuration
SCRIPTING
‎Repeat with each item in ‎Dictionary Value
DOCUMENTS
‎Replace ‎[~+].+ ‎with ‎World ‎in ‎Repeat Item
Case Sensitive
Regular Expression
TEXT
‎" ‎Repeat Item ‎":" ‎Updated Text ‎"
SCRIPTING
‎End Repeat
TEXT
‎Combine ‎Repeat Results ‎with ‎Custom ‎,
TEXT
‎{ ‎Combined Text ‎}
SCRIPTING
‎Get dictionary from ‎Text
SCRIPTING
‎Set ‎Sizes ‎to ‎Dictionary ‎in ‎Dictionary
SHORTCUTS
‎Run ‎Shortcut
Input
‎Dictionary
Show While Running
SCRIPTING
‎Get dictionary from ‎Shortcut Result
VARIABLES
‎Set variable ‎Configuration ‎to ‎Dictionary
SCRIPTING
‎Get ‎All Keys ‎in ‎Configuration
SCRIPTING
‎Count ‎Items ‎in ‎Dictionary Value
VARIABLES
‎Set variable ‎Frame Count ‎to ‎Count
SCRIPTING
‎Get ‎All Keys ‎in ‎Configuration
SCRIPTING
‎Count ‎Items ‎in ‎Dictionary Value
VARIABLES
‎Set variable ‎Size Count ‎to ‎Count
SCRIPTING
‎Show alert ‎Informational Message
Title
‎optional
Show Cancel Button
MISSING
‎output Under Construction
SCRIPTING
‎End If
SCRIPTING
‎If ‎Shortcut Input ‎contains ‎"queue":
DOCUMENTS
‎Get File
Service
‎iCloud Drive
Show Document Picker
File Path
‎/Shortcuts/example.txt
Error If Not Found
SCRIPTING
‎If ‎File ‎does not have any value
SCRIPTING
‎Show alert ‎Facebook Devices.zip not found
Title
‎Facebook Devices.zip not found
Show Cancel Button
DOCUMENTS
‎Get File
Service
‎iCloud Drive
Show Document Picker
Select Multiple
DOCUMENTS
‎Get File
Service
‎iCloud Drive
Show Document Picker
Select Multiple
SCRIPTING
‎If ‎File ‎does not have any value
DOCUMENTS
‎Create Folder
Service
‎iCloud Drive
Path
‎/Shortcuts/cache
SCRIPTING
‎End If
NOTIFICATIONS
‎Show notification ‎Input
‎Options Under Construction
URL
‎https://design.facebook.com/toolsandresources/devices/
NETWORK
‎Get contents of ‎URL
‎Options Under Construction
DOCUMENTS
‎Make Markdown from ‎Contents of URL
WEB
‎Get URLs from ‎Markdown from Rich Text
FILES
‎Filter ‎URLs ‎where
‎[{'class': 'filter-property', 'value': 'Name'}, {'class': 'filter-operator', 'value': 'contains'}, {'class': 'filter-benchmark', 'value': 'zip'}]
Sort by
‎None
Limit
Get 1 File
DOCUMENTS
‎Replace ‎&amp; ‎with ‎& ‎in ‎Files
Case Sensitive
Regular Expression
NETWORK
‎Get contents of ‎Updated Text
‎Options Under Construction
SCRIPTING
‎Set name of ‎Contents of URL ‎to ‎Facebook Devices.zip
DOCUMENTS
‎Save ‎Renamed Item
Service
‎iCloud Drive
Ask Where to Save
Destination Path
‎[{'value': '/Shortcuts/', 'class': 'text'}, {'class': 'magic', 'value': 'Shortcut', 'glyph': 'assets/cat/Variable.svg', 'UUID': ''}, {'value': '/cache/', 'class': 'text'}]
Overwrite If File Exists
SCRIPTING
‎Otherwise
FILES
‎Filter ‎File
Sort by
‎None
Limit
Get 1 File

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

1

348 more actions