iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🎨

10 Practical iOS Shortcut Examples!

に公開

What Can You Do with Shortcuts?

This article is for you if you're thinking,

"Shortcuts? I'm not sure what they're actually useful for..."

As someone who uses Shortcuts extensively, I'll show you specific examples of how I use them.

Actually, I rarely launch Shortcuts manually. They mostly run through Automation, or via Share Sheets, Accessibility features, and integrations with other apps. The true convenience of Shortcuts lies in these combinations.

I've added "combination" icons to the titles of each example.

  • 👇🏻 Shortcut alone, manual launch
  • 🗣️ Launch via Siri
  • 🕙 Combined with Automation (non-time-based automations have relevant icons)
  • 🚹 Combined with Accessibility
  • ⬆️ Combined with other apps via Share Sheet
  • 🙏🏻 Launching Shortcuts from other apps

From small tips to "Wait, you can do that?!" moments, please take a look.

🕙 Automatically Posting Weather Forecasts to Discord

I've set up a system using Automation to automatically post the weather forecast at a fixed time every day.
Chart samples posted to Discord
I wrote an article about this.
https://zenn.dev/aromarious/articles/post-weather-info-to-discord

👇🏻 English Mental Math (Read Aloud)

A shortcut where numbers are read aloud in English, you calculate them, and then answer verbally. The goal is to practice listening and speaking for numbers in English. When you see digits, you (and I) tend to read them in Japanese. Purely audio training is necessary. It's effective because you have to listen intently to do the math.

🕙 Switching Apple Watch Face if Rain is Likely


During this season, I display the UV index on my Apple Watch face, but if it's likely to rain, I want to show rain information in the same spot. The number of complications you can display is limited. So, I created a watch face where only that part is different and set it to switch every 6 hours after checking the weather forecast.

🕙[🛏️] Turning on Room Lights When Wake-up Alarm is Stopped

In Automation, there is a trigger called "When Waking Up". This usually means "when the wake-up time in the iPhone's Sleep Schedule arrives," but if the wake-up alarm is toggled on, it behaves as "When the wake-up alarm is stopped".

By setting the automation like this:

Stop alarm → Lights turn on.

"You just stopped the alarm. You better be awake now." The pressure is intense.

🚹 Unlocking Screen Orientation with Back Tap

Did you know that you can perform various actions by double-tapping or triple-tapping the back of your iPhone?

You can choose actions by going to Settings app → Accessibility → Touch → Back Tap → Double/Triple Tap.
There is an option called "Lock Rotation," but it's a toggle, meaning you often have to open the Control Center to check the current status.

Here, you can call a Shortcut.

  • Double tap... Unlock orientation
  • Triple tap... Lock orientation

I have it set up this way. I also make the iPhone vibrate so I know which action was triggered.

🗣️👇🏻 Remote Control

  1. Create shortcuts using Switchbot to turn lights or air conditioning on and off.
  2. Put them in a folder named "Remote".
  3. Create a shortcut that displays a list of the contents in the "Remote" folder and lets you choose one to run.
  4. Launch it by saying, "Hey Siri, Remote."
  5. You can also place an icon on the Home Screen or register it as a widget.

Application

I used to record my health status with an app called "PiyoLog" and created a shortcut with the same system.

While "PiyoLog" is an infant care record app, it's also great for adults to keep track of their own health.
https://apps.apple.com/jp/app/育児記録-ぴよログ/id1252857347

🕙 Pushing All Shortcuts to GitHub Daily

This requires an app called Working Copy. It's a one-time purchase, costing around 1,200 yen.
https://apps.apple.com/jp/app/working-copy-git-client/id896694807
Since the mechanism is quite complex, I'll just share the core structure.

  1. First, create a new repository on GitHub and clone it using the Working Copy app to create a local repository (first time only).
  2. Create a file image with the "Get Shortcut" action, and pass it to a Working Copy action (there's one for writing to a repository) to export it.
  3. Use the Commit action (with the push option turned on) to commit and push.

Aside

The exported shortcuts used to be text and human-readable, but I just noticed they've become binaries at some point. My code is supposed to only export items newer than the last export date, but I might need to re-export everything once.

🗣️👇🏻 Turning Off Mac Display

Use this when you're in bed and think, "The display is too bright!" I usually ask Siri for this.

There is an action to issue commands via SSH.

Procedure for first-time use
  1. Set up remote login on the Mac side (it is strongly recommended to disable password login and only accept SSH keys).
  2. Place an SSH action in the iPhone Shortcut.
  3. Tap the right side of "SSH Key" to go to the key pair screen.
  4. Create a key pair with "Generate New Key."
  5. Copy the public key and add it to .ssh/authorized_keys on the Mac side.

It takes a bit of effort at first. But to make your Mac listen to you after you're in bed, it's a small price to pay.

Once this is done, write the desired command line. The standard output of the command will be passed back as text, so try something like ls or echo Hello world first.

After confirming it works, try executing the actual command.

Application

Once the above is set up, you can execute any command.

% open -a /Applications/Notion.app

It's somewhat amusing to issue a command like this and have the Notion app suddenly launch on a Mac screen way over there. It's not very practical, though.

You might use it when you're about to start work on your Mac but want to kick off something from the bathroom that takes a bit of time to launch—like opening VSCode and connecting to GitHub Codespaces.

I feel like it's better not to, but you can also reboot or shut down.

You can even do sudo. Terrifying. Good kids shouldn't imitate this.

🗣️ Starting a Voice Conversation with ChatGPT Using Only Your Voice

ChatGPT now supports voice conversations. Now that it can do that much, it's only human to want to start and have a conversation without using your hands.

You can make this happen with a little help from Siri.

By saying, "Hey Siri, I want to talk to Chappi,"

ChatGPT's voice conversation launches, and you can start talking to ChatGPT smoothly and seamlessly.

I feel a little sorry for Siri, but with the news from WWDC24 that ChatGPT will be heavily integrated into the next iOS, this shortcut will likely serve as a bridge until then.

🕙[🔋,📍] Turning on Low Power Mode When Out and Battery is Low

If you're at home, you can just charge it. If the battery is running low while you're out, you probably want Low Power Mode on.

Create something like this:

And set it up in a Battery Automation.

If you want Low Power Mode to be always on while you're out regardless of the remaining battery, you should use a Location Automation.

Turn Low Power Mode on when leaving home and off when arriving.

🕙[⏰] Opening an App When an Alarm is Stopped

The high schooler at my house says they don't need cram school and asks me whenever they don't understand something.

However, I'm not always free, so we have a deal that they need to make a reservation by the day before if they want me to help with studying. But they often forget.

It seems they have an alarm for "Make study reservation," but when they're busy, they just end up stopping it.

"Okay, then snooze it if you're busy. If you can do it, stop it. Let's make the Calendar app open automatically when you stop the alarm. Make a time slot there. Delete it if it's a day you're not doing it. Then post it to Discord at the deadline—let's go with that. Is that okay?"
"Got it. If this doesn't work out, I'll consult with you again."


Automation on the high schooler's iPhone


Automation on my iPhone

I was wondering if they would be able to get by in the future after growing up in an environment where it's normal to handle things through systems like this, but then...

"I want to add a step to check via Discord before opening the Calendar. I'm thinking of doing it via Webhook, is that cool?"

They said that and quickly made the adjustment. They were more reliable than I thought. I'd appreciate it if they keep that up.

⬆️ Transforming Zenn Scraps into Articles

I just made this. Out of necessity.

Writing scraps like this made me want to turn them into articles.

Zenn has an API that provides Markdown for Scraps, but it seems you can't "fetch" it (the server denies it, asking you to log in).

However, it is accessible via a browser. This is where Shortcuts come in. You can open the Share Sheet from the browser and process the page content.

First, open the Share Sheet from the Scrap page and run a shortcut that accesses the JSON page. This opens the target JSON in a new tab.

Then, open the Share Sheet from the JSON page and run a shortcut to convert it into an article file. Once passed to this shortcut, it adds it to the repository on the iPhone.

You can use this as a draft, refine it into an article, set topics, rename the file with an appropriate slug, and push it to post it as an article. Convenient.

Scraps have a low barrier to entry and are easy to write. While writing on a big screen tends to make things wordy, writing while previewing on a smartphone helps prevent that. Plus, it's helpful that drafts are easy for others to view.

🙏🏻 Registering Follow-up Reminders in Due (Reminder App)

There is something called a URL scheme to run shortcuts externally.
https://support.apple.com/en-us/guide/shortcuts/apd624386f42/ios

shortcuts://run-shortcut?name=[Name]&input=[Input]&text=[Text]

Embed this in the title in the Due app. Then, when you mark a task as complete, an "Open this" button appears.
It behaves similarly to the alarm automation mentioned earlier.


Me, who often forgets to charge and put back on my Apple Watch

This is Never-ending

"10 examples," my foot. There are already 13.

Shortcuts have integrated into so many places that I can't introduce them all. I'll just briefly cover the rest in a bulleted list. It'll exceed 20 examples, but oh well.

  • 🗣️ Saying "Hey Siri, search for 'that thing' on Amazon" results in Siri responding "One moment, 'that thing,' right? What exactly was 'that thing' again?"—searching for you while providing gentle care.
  • 🗣️ Aeon Net Supermarket provides similar "care."
  • ⬆️ Counting the number of characters in text (launched from the Share Sheet).
  • 🕙📍 Starting an "Outdoor Walk" workout as soon as I leave home.
  • ⬆️ For family members who find it tedious to open PDFs, converting PDFs to images before sending (launched from Share Sheet, then sent to another app via Share Sheet).
  • 👇🏻🗣️ A shortcut that simply displays the clipboard contents. This is surprisingly useful. It’s great for situations like "I want to save the image currently in my clipboard, but it only exists there now."
  • 👇🏻 When I suddenly want to combine, split, or resize images on the fly, I create and run a quick shortcut on the spot.
  • 👇🏻 A shortcut to Base64-encode small images or sounds. When you want to include images or audio in a shortcut, you usually have to place the file somewhere and reference it. That's a hassle. Encoding them allows everything to stay within the shortcut itself.
  • 👇🏻 A shortcut (?) that creates URL schemes to run shortcuts. Seriously, it's handy because I can't remember schemes and have to deal with URL encoding. I know people who don't use Shortcuts won't understand the appeal. But eventually, you'll be saying, "Yeah, you need this!"

Looking at this list, I realize I'm using Shortcuts just like how I used to handle everything quickly with perl or ruby. It's a bit different from building a full-scale system.

It reminds me of the days when I'd combine sed, cut, awk, and others in the shell command line for on-the-spot processing with one-liners.

Maybe the casual nature of Shortcuts and the lack of strict error handling are because they're meant to address "I just want to process this right now."

If You Want to Try It

I've listed many things, but I barely explained how they work. I apologize for this being an unhelpful article for those who actually want to try them.

If there's something you want to try, I suggest giving it a shot yourself first. If you get stuck, feel free to ask in the comments. I can't provide a full guided tour, but I can at least offer some hints.

For those who have never touched Shortcuts, I recommend starting by making a "shortcut that simply displays the clipboard contents." It's simple but practically useful.

Enjoy shortcutting!

Discussion