Ana içeriğe geç

Create a Shortcut Application for pairing your AirPods

  1. Create a Shortcut Application for pairing your AirPods, AppleScript or Script Editor: adım 1, 1 resimden 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: adım 2, 2 resimden 1. Create a Shortcut Application for pairing your AirPods, AppleScript or Script Editor: adım 2, 2 resimden 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: adım 3, 1 resimden 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: adım 4, 1 resimden 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: adım 5, 2 resimden 1. Create a Shortcut Application for pairing your AirPods, Running the Application for the first time: adım 5, 2 resimden 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: adım 6, 1 resimden 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: adım 7, 3 resimden 1. Create a Shortcut Application for pairing your AirPods, Creating a custom App icon: adım 7, 3 resimden 2. Create a Shortcut Application for pairing your AirPods, Creating a custom App icon: adım 7, 3 resimden 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.

Sonuç

Enjoy your new shortcut!

10 farklı kişi bu kılavuzu tamamladı.

[deleted]

Üyelik tarihi: 08/28/18

26.328 İtibar

21 adet Kılavuz yazıldı

2 Yorum

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 - Yanıt

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 - Yanıt

Yorum Ekle

İstatistikleri Görüntüle:

Son 24 Saat: 1

Son 7 gün: 7

Son 30 gün: 39

Her zaman: 11,059