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
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
<inline variable>
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
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/
Shortcut
Overwrite If File Exists
output Under Construction
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
/Shortcuts/
Shortcut
End If
NETWORK
Get contents of
Shortcut
Options Under Construction
DOCUMENTS
DOCUMENTS
Save
Files
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/
Shortcut
Overwrite If File Exists
SCRIPTING
Count
Items
in
Saved File
SCRIPTING
Repeat with each item in
Saved File
TEXT
Repeat Item
End Repeat
output Under Construction
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
Otherwise
DICTIONARY
<inline variable>
<inline variable>
<inline variable>
0 items
<inline variable>
0 items
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
file.getfoldercontents Under Construction
FILES
All the following are true
File Extension
is
png
Name
contains
x
Name
contains
+
Name
contains
Sort by
Name
Order
A to Z
Limit
SCRIPTING
If
Archivos
has any value
SCRIPTING
Set
Frames
to
Archivos
in
Dictionary
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
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
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
End If
End Repeat
TEXT
Combine
Repeat Results
with
Custom
,
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
"
End Repeat
TEXT
Combine
Repeat Results
with
Custom
,
SCRIPTING
Get dictionary from
Text
SCRIPTING
Set
Sizes
to
Dictionary
in
Dictionary
SHORTCUTS
Run
Shortcut
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
output Under Construction
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
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
FILES
Filter
URLs
where
Name
contains
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
Service
iCloud Drive
Ask Where to Save
Destination Path
/Shortcuts/
Shortcut
/cache/
Overwrite If File Exists
Otherwise
FILES
Filter
File
Sort by
None
Limit
Get 1 File

Showcuts

Magic Vars

Screenshot

Submitted Anonymously a month 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