在iPhone或iPad上打开应用程序时如何自动启动快捷方式

Shortcuts notification telling the user that an automation is running
Khamosh Pathak
Khamosh Pathak

Shortcuts, the built-in automation app on iPhone and iPad, gained new automation features in iOS 13 and iPadOS 13. Now, you can automatically launch a shortcut every time you open an app. Here’s how to set it up.

iPhone和iPad上的内置自动化应用程序Shortcuts在iOS 13和iPadOS 13中获得了新的自动化功能。现在,您每次打开应用程序都可以自动启动快捷方式。 设置方法如下。

You can use the new Automations section in Shortcuts to trigger automation in many different ways, ranging from Near Field Communication “NFC” to location.

您可以使用快捷方式中新的“ 自动化”部分,以多种不同方式触发自动化,范围从近场通信“ NFC”到位置。

In this guide, we’re going to focus on the app launch automation. This feature can be useful in a couple of different ways. You can set up a shortcut to automatically engage Do Not Disturb mode when you open your favorite game or start playing music when you open the Music app. There’s a lot that you can do here.

在本指南中,我们将重点介绍应用程序启动自动化。 此功能可以通过两种不同方式使用。 您可以设置一个快捷方式,以在打开喜欢的游戏时自动进入“请勿打扰”模式,或者在打开“音乐”应用时开始播放音乐。 您可以在这里做很多事情。

Let’s learn using the Do Not Disturb mode example. (You can also create shortcuts to directly open any Settings page.)

让我们使用“ 请勿打扰”模式示例进行学习。 (您还可以创建快捷方式以直接打开任何“设置”页面。 )

Open the preinstalled “Shortcuts” app on your iPhone or iPad, and go to the “Automation” tab. Use Spotlight Search if you can’t find the app on your Apple device.

在您的iPhone或iPad上打开预装的“快捷方式”应用程序,然后转到“自动化”标签。 如果您无法在Apple设备上找到该应用,请使用Spotlight搜索

Tap on Automation tab in Shortcuts

If this is your first time creating an automation, tap the “Create Personal Automation” icon, or select the Plus (+) icon found at the top of the window to get to the same screen.

如果这是您第一次创建自动化程序,请点击“创建个人自动化程序”图标,或者选择在窗口顶部找到的加号(+)图标以进入同一屏幕。

Tap on Create Personal Automation

From the list of automations, scroll down, and tap the “Open App” option.

从自动化列表中,向下滚动,然后点击“打开应用程序”选项。

Tap Open App option

Now, tap the “Choose” button next to the “App” option.

现在,点击“应用”选项旁边的“选择”按钮。

Tap the Choose button

Here, search for and select the app you want to use. Then, tap the “Done” button.

在这里搜索并选择要使用的应用。 然后,点击“完成”按钮。

Choose the app and tap the Done button

From the next screen, tap the “Next” button.

在下一个屏幕中,点击“下一步”按钮。

Tap Next after confirming app

Now it’s time to add actions. In this example, we’ll be adding the Do Not Disturb mode toggle, but you can search and add any action you like. Tap the “Add Action” button to get started.

现在是时候添加动作了。 在此示例中,我们将添加“请勿打扰”模式切换,但是您可以搜索并添加所需的任何操作。 点击“添加操作”按钮开始使用。

Tap the Add Action button

You can browse all available actions, or you can search for the “Set Do Not Disturb” option. Once you find the item, tap to select it.

您可以浏览所有可用的操作,也可以搜索“设置请勿打扰”选项。 找到项目后,点击以选中它。

Choose action to add

The action will be added to your shortcut. Tap the “Off” button to configure the Do Not Disturb action.

该操作将添加到您的快捷方式中。 点击“关闭”按钮以配置“请勿打扰”操作。

Tap on Off button next to Do Not Disturb

Now, select the “Next” button from the top-right corner.

现在,从右上角选择“下一步”按钮。

Tap on Next button after adding action

Your automation is ready. Tap the toggle next to “Ask Before Running” to make this a real automation (or else you’ll only see a notification from which you can enable the shortcut).

您的自动化已经准备就绪。 轻按“在运行前询问”旁边的开关,以使其真正成为自动化(否则您将仅看到一条通知,您可以从中启用快捷方式)。

Tap on toggle next to Ask Before Running

To confirm, tap the “Don’t Ask” button.

要确认,请点击“不要问”按钮。

Tap on Don't Ask button

Finally, tap the “Done” button to save and enable the automation.

最后,点击“完成”按钮以保存并启用自动化。

Tap on Done from edit automation screen

When you open the app that you choose earlier in the setup process, you’ll receive a notification saying that the Shortcuts app is running your automation.

当您打开在设置过程中较早时选择的应用程序时,您会收到一条通知,指出“快捷方式”应用程序正在运行自动化。

Shortcuts notification saying that automation is running


New to Shortcuts? Here’s how to use the Shortcuts app on your iPhone.

快捷方式的新手? 这是在iPhone上使用快捷方式应用程序的方法。

翻译自: https://www.howtogeek.com/676204/how-to-automatically-launch-shortcuts-when-you-open-an-app-on-iphone-or-ipad/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值