跳转到主内容

简介

This handy shortcut will allow you to pair your AirPods in just one click, rather than going to Bluetooth>YourAirPodsNameHere>Connect. In the long run it could save you up to 18 min each year!

  1. Create a Shortcut Application for pairing your AirPods, AppleScript or Script Editor: 步骤 1 中的图像 1,1
    • Open AppleScript or Script Editor, whichever comes up for you.

    • Go to Finder > Applications > Utilities > Script Editor/AppleScript

  2. Create a Shortcut Application for pairing your AirPods, AppleScript or Script Editor: 步骤 2 中的图像 1,2 Create a Shortcut Application for pairing your AirPods, AppleScript or Script Editor: 步骤 2 中的图像 2,2
    • At the popup for Script Editor click New Document at the bottom left corner. Then Copy and Paste the code into Script Editor/AppleScript that I have provided down below in the link.

    • AirPods Shortcut Script

  3. Create a Shortcut Application for pairing your AirPods, Configuring the Script: 步骤 3 中的图像 1,1
    • "Are we done yet?" No, thanks for asking.

    • Next, we have to configure the Script. First, have a look at my image and select the group of text I circled. Replace that text with the name of your AirPods. Keep the quotation marks around the name or the Script will not function.

    • For example, my AirPods are named "Jet the Hawk".

    • You may want to rename your AirPods to a different name without apostrophes because I could not get this to work when my AirPods were named "Aaron's AirPods".

  4. Create a Shortcut Application for pairing your AirPods, Creating the Application: 步骤 4 中的图像 1,1
    • Now press Command + S at the same time to save the file. Name it Connect to AirPods and save it in Application file format. Save it to your desktop.

  5. Create a Shortcut Application for pairing your AirPods, Running the Application for the first time: 步骤 5 中的图像 1,2 Create a Shortcut Application for pairing your AirPods, Running the Application for the first time: 步骤 5 中的图像 2,2
    • The first time you run this Application you will need to allot it permissions to control system functions otherwise it will throw errors.

    • Go to System Preferences > Security & Privacy > Accessibility > Privacy

    • Click the lock and enter your admin username and password.

    • Check the box to the left of Connect to AirPods

  6. Create a Shortcut Application for pairing your AirPods, OPTIONAL: Creating a Custom App Icon: 步骤 6 中的图像 1,1
    • This step is completely optional, you can be done here for it to work properly. Click the App twice in order for it to connect to your AirPods.

    • Creating a custom App icon is totally optional, but here's how you do it.

    • Download Image2Icon from the Mac App Store. It is completely free, no worries.

    • You can download Image2Icon here.

  7. Create a Shortcut Application for pairing your AirPods, Creating a custom App icon: 步骤 7 中的图像 1,3 Create a Shortcut Application for pairing your AirPods, Creating a custom App icon: 步骤 7 中的图像 2,3 Create a Shortcut Application for pairing your AirPods, Creating a custom App icon: 步骤 7 中的图像 3,3
    • Find a good image to use as your App icon, preferably a .png icon.

    • I used this image here as my icon, you can use it if you want.

    • Now, open Image2Icon and drag and drop the image you want as the icon into the Image2Icon window.

    • Drag the Connect to AirPods Application into the Image2Icon window

    • You should see your Application with the icon you selected with now. You may need to right click it and open it thru there because it probably will say it is from an unidentified developer and block it. You will need to be an admin to bypass this too.

结论

Enjoy your new shortcut!

10等其他人完成本指南。

[deleted]

于2018年08月28日注册

24,616 声望

创作了21篇指南

2条评论

Thanks for this guide Aaron! After setting up Siri Shortcuts to do this on my iOS devices, I really wanted something comparable on my Mac and this worked perfectly. Referring to Step 3, I really wanted to keep that apostrophe so after some fiddling around, I realized that the apostrophe in the name generated by default for my AirPods was different than the one I was writing in the script. The default name includes a ‘ while in the script editor my keyboard was typing out a '. If you look closely they are different characters with ASCII codes 8216 and 39 respectively. I simply renamed my AirPods in Bluetooth Preferences to match what was in my script and it worked like a charm! Hopefully this works for anybody else who tries this and wants to keep their apostrophe.

Jimmy Rogers - 回复

Thank you! It works perfectly. One question: Siri won’t open this App, instead gives error: “I can’t do that”. I put this app into Applications.

Demian Mioc - 回复

添加评论

浏览统计数据:

过去 24 小时: 5

过去 7 天: 29

过去 30 天: 143

总计 9,587