Acidham 62 Posted June 29, 2020 Share Posted June 29, 2020 (edited) I know, it is an another AirPod Connector but I am an owner of 3 pairs of them, and I was not able to find an AirPod Connector which supports more than one pair. In addition, the WF runs out of the box without any configuration. Download on Git Edited June 29, 2020 by Acidham Link to post
vitor 897 Posted June 29, 2020 Share Posted June 29, 2020 1 hour ago, Acidham said: The Workflow requires blueutil brew install blueutil Would you like it not to require users to have to manually install the dependency? I can help you set up _sharedresources, if you’d like. blueutil is supported, as I use it in one of my Workflows. Link to post
Acidham 62 Posted June 29, 2020 Author Share Posted June 29, 2020 @vitor sure would be wonderful. What is preferred way to start integrating it? Should I read manual first or is it meant to get premium support from you ? 🤗 Link to post
vitor 897 Posted June 29, 2020 Share Posted June 29, 2020 @Acidham Just like OpenUpdater, it’s meant to be as simple as possible.Add the script to your Workflow. Doesn’t matter where you put it; it’s wherever is convenient to you.Inside any script that requires blueutil, run /path/to/_sharedresources blueutil.Set the result of the previous command to the PATH environment variable.Call blueutil as usual. In Bash you’d so something like (assuming _sharedresources and the script are in the same directory): PATH="$(./_sharedresources 'blueutil')" blueutil WHATEVER In Ruby: require 'open3' ENV['PATH'] = Open3.capture2('./_sharedresources', 'blueutil').first Open3.capture2('blueutil', WHATEVER) Link to post
Acidham 62 Posted June 29, 2020 Author Share Posted June 29, 2020 (edited) what about Python? import os os.environ['PATH'] = os.popen('./_sharedresources "blueutil"').readline() os.popen('blueutil WHATEVER') Edited June 29, 2020 by Acidham Link to post
Acidham 62 Posted June 29, 2020 Author Share Posted June 29, 2020 @vitor Done...implemented and released Thank you for the tip! vitor 1 Link to post
vitor 897 Posted June 29, 2020 Share Posted June 29, 2020 37 minutes ago, Acidham said: what about Python? I assumed it would be just as simple, but since you are a Pythonista and I’m not, I was confident you’d reach the best solution from my examples. Link to post
vitor 897 Posted June 29, 2020 Share Posted June 29, 2020 Don’t forget you can edit the top post to remove the blueutil requirement. Link to post
Acidham 62 Posted June 29, 2020 Author Share Posted June 29, 2020 14 minutes ago, vitor said: Don’t forget you can edit the top post to remove the blueutil requirement. not sure I understand. Which top post ? Link to post
vitor 897 Posted June 29, 2020 Share Posted June 29, 2020 Just now, Acidham said: not sure I understand. Which top post ? The first one on this thread. Link to post
Oblique 0 Posted July 6, 2020 Share Posted July 6, 2020 This does not seem to work on Catalina - I activate the script but nothing happens. However the script correctly reads if the AirPods are connected or not. I installed the developer tool that was required Link to post
Acidham 62 Posted July 6, 2020 Author Share Posted July 6, 2020 (edited) I am on Catalina and no issues.... 1. what is the output when you enter ... blueutil -v ....in terminal? 2. What is log output of Alfred...open workflow and click on the bug on top right corner Edited July 6, 2020 by Acidham Link to post
epistaxis 0 Posted July 6, 2020 Share Posted July 6, 2020 (edited) Same thing for me; nothing happens when I input the keyword. I downloaded the workflow and let the program download something. Here's my results: 1. ----------------------------------------------------------------------- Last login: Mon Jul 6 15:12:53 on ttys000 user@MacBook-Pro ~ % blueutil -v zsh: command not found: blueutil user@MacBook-Pro ~ % ----------------------------------------------------------------------- 2. ----------------------------------------------------------------------- [15:16:20.645] ERROR: AirPods Connector[Run Script] /Users/user/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/D0C9763C-E272-427B-8A49-1EAA4862E448:1: no such file or directory: /usr/local/bin/blueutil Update: After installing blueutil on terminal, it's working as intended now. P.S.: Thanks! 👍 Edited July 6, 2020 by epistaxis Update Link to post
Acidham 62 Posted July 7, 2020 Author Share Posted July 7, 2020 @epistaxis thank you for reporting this issue. It was a bug in my script when blueutil was installed via installer script. Fixed now! Link to post
Acidham 62 Posted July 13, 2020 Author Share Posted July 13, 2020 (edited) v1.2 supports Powerbeats Pro in addition. Download on Git Edited July 13, 2020 by Acidham Link to post
ProRock 2 Posted March 4 Share Posted March 4 Hello, Great wf. works as intended. Can you kindly add AirPods Max? Link to post
Acidham 62 Posted March 4 Author Share Posted March 4 Sure but I do not own AirPods Max. Therefore, I need VendorID and ProductID. Please follow following instructions and provide me with the two IDs: https://github.com/Acidham/alfred-airpod-connector/issues/1#issuecomment-657230457 Link to post
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now