Welcome toÂ TNW Basics, a collection of tips, guides, and advice on how to easily get the most out of your gadgets, apps, and other stuff.
Shortcuts for iOS is aÂ useful app for automating actions on your iPhone or iPad. In this series, weâ€™ve been looking at a variety of workflows to make your Apple device a lot more powerful to accomplish specific tasks.
With the upcoming iOS 13 update, Shortcuts is all set to get even better, allowing you to automatically trigger workflows at a specific time and location.
Today, weâ€™ll take a look at a simple automation that tells you the size of any file passed to it. iOS, by default, doesnâ€™t have a native option to find out the size of a file.
The alternative is to upload your images and videos to a cloud service like Google Drive, Dropbox, or OneDrive. Another option is to use Appleâ€™s built-in Files app, which uploads the files to iCloud. But Shorcuts makes it dead simple to get this information with a few steps. Hereâ€™s how to do it:
Step #1: Download the Shortcuts app from the App Store, if you havenâ€™t done so already. (Note: It comes pre-installed on your device if youâ€™re already running iOS 13 developer beta.)
Step #2: Open the app, and in the â€œMy Shortcutsâ€Â tab, hit â€œ+â€ on top to create a new shortcut.
Step #3: Tap the â€œSettingsâ€ icon on top right, and give the shortcut a name, for example, â€œGet File Size.â€ You can also tap the â€œIconâ€ to change it to something that matches your shortcutâ€™s function better.
To give you a quick primer, Shortcuts can be triggered in two different ways: they can be run either from within the app as a standalone workflow, or can be initiated from the Share Sheet menu.
You can even fine-tune the shortcut by specifying the kinds of inputs it should run on. This can be done by turning on â€œShow in Share Sheet.â€
Now tap â€œShare Sheet Typesâ€ toÂ select the relevant input file options. In this case, for example, it makes sense to run the shortcut when the input is a multimedia file (photo or video), or other kinds of files like PDFs.
Step #4: Next, add a â€œGet Details of Filesâ€ action. This does exactly what it says â€” get different details associated with a file, such as name, extension, creation date, last modified, and size.
Step #5: Now, tap the â€œDetailâ€ field and select â€œFile Sizeâ€ as the option. This will return the file size of the file passed as input.
Step #6: A convenient way to show the file size is to send a notification. You can do this by adding a â€œShow Notificationâ€ action and linking it to the output of the previous step. You can further customize the notification message so itâ€™s more easy to understand.
Step #7: Thatâ€™s it! Youâ€™re done. To run the shortcut, all you have to do is select a photo or some other file. Tap the â€œShareâ€ icon, and select the shortcut â€œGet File Size.â€ Once the shortcut completes running, youâ€™ll receive a notification with the message containing the size of the file.
Weâ€™ve already covered how to create a simple RSS feed reader, share your Wi-Fi password as a QR code, remove metadata from photos, and download free themed wallpapers from Unsplash. But, this is just the start of what you can accomplish with Shortcuts.
If youâ€™re new to the whole Shortcuts thing, Apple has put together a handy user guide to get you started. Have any interesting idea for a shortcut? Feel free to tweet at us.