Einleitung

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. c6wlcIZJDsWWedXL
    • Open AppleScript or Script Editor, whichever comes up for you.

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

  2. TOugiVcHQdeZOTgZ
    TOugiVcHQdeZOTgZ
    qfZDe2sKcTMTR1WA
    • 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. jGEWpfcw6uMlBFLQ
    • "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".

    If your AirPods name in Bluetooth Preferences contains an apostrophe in it, double check that it appears the same way it does in your script. For example, the default name given for my AirPods would be “Jimmy’s AirPods”. In the script it will appear as “Jimmy's AirPods”. If you look closely they both have different apostrophes. One is curved, ‘, and one is straight, '. Renaming the device in either Bluetooth Preferences or in the Script Editor will fix the issue with apostrophes.

    Jimmy Rogers -

  4. xVFqjvWPHELcApox
    • 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. LbaSFYFjeM6LldOK
    LbaSFYFjeM6LldOK
    MD5jnUhvxHYxHFwc
    • 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. CkYJDv2KAS24EeSX
    • 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. Kkujqs6DieqwINmY
    Kkujqs6DieqwINmY
    RXCCfdcdRN6DGiJv
    gsRECISvH1ghyTVJ
    • 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.

Abschluss

Enjoy your new shortcut!

[deleted]

Mitglied seit: 28/08/18

25024 Reputation

2 Kommentare

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 -